aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-02-25 21:22:25 +0000
committerKarl Heuer1994-02-25 21:22:25 +0000
commit7ea9c0209a19c13dcbe0088585155550d1605bc9 (patch)
tree6bdd5a8182c0525ef97f9411169d804c61b58469 /src
parentfe3d692136d42b84037165c6a53fe7f700342552 (diff)
downloademacs-7ea9c0209a19c13dcbe0088585155550d1605bc9.tar.gz
emacs-7ea9c0209a19c13dcbe0088585155550d1605bc9.zip
(compute_motion): Allow for invisible overlays in next_invisible lookahead.
Diffstat (limited to 'src')
-rw-r--r--src/indent.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c
index 5824dbc9993..e2711c1fdee 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -482,7 +482,9 @@ compute_motion (from, fromvpos, fromhpos, to, tovpos, tohpos, width, hscroll, ta
482 482
483 /* This is just an estimate to give reasonable 483 /* This is just an estimate to give reasonable
484 performance; nothing should go wrong if it is too small. */ 484 performance; nothing should go wrong if it is too small. */
485 XFASTINT (limit) = pos + 100; 485 limit = Fnext_overlay_change (position);
486 if (XFASTINT (limit) > pos + 100)
487 XFASTINT (limit) = pos + 100;
486 end = Fnext_single_property_change (position, Qinvisible, 488 end = Fnext_single_property_change (position, Qinvisible,
487 Fcurrent_buffer (), limit); 489 Fcurrent_buffer (), limit);
488 if (INTEGERP (end)) 490 if (INTEGERP (end))