changeset 6092:a3e4e8ac2a33

(compute_motion): Allow for invisible overlays in next_invisible lookahead.
author Karl Heuer <kwzh@gnu.org>
date Fri, 25 Feb 1994 21:22:25 +0000
parents b634e16673ab
children 00cee8387866
files src/indent.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/indent.c	Fri Feb 25 21:21:53 1994 +0000
+++ b/src/indent.c	Fri Feb 25 21:22:25 1994 +0000
@@ -482,7 +482,9 @@
 
 	    /* 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))