]> git.eshelyaron.com Git - emacs.git/commitdiff
(compute_motion): Allow for invisible overlays in next_invisible lookahead.
authorKarl Heuer <kwzh@gnu.org>
Fri, 25 Feb 1994 21:22:25 +0000 (21:22 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 25 Feb 1994 21:22:25 +0000 (21:22 +0000)
src/indent.c

index 5824dbc99935d3a76697df3f63d383a3cfcd84c2..e2711c1fdeeb678934e3be1559dd8cc11e065819 100644 (file)
@@ -482,7 +482,9 @@ compute_motion (from, fromvpos, fromhpos, to, tovpos, tohpos, width, hscroll, ta
 
            /* This is just an estimate to give reasonable
               performance; nothing should go wrong if it is too small.  */
-           XFASTINT (limit) = pos + 100;
+           limit = Fnext_overlay_change (position);
+           if (XFASTINT (limit) > pos + 100)
+             XFASTINT (limit) = pos + 100;
            end = Fnext_single_property_change (position, Qinvisible,
                                                Fcurrent_buffer (), limit);
            if (INTEGERP (end))