changeset 6091:b634e16673ab

(display_text_line): Allow for invisible overlays in next_invisible lookahead.
author Karl Heuer <kwzh@gnu.org>
date Fri, 25 Feb 1994 21:21:53 +0000
parents e7c900a464d3
children a3e4e8ac2a33
files src/xdisp.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Fri Feb 25 19:35:58 1994 +0000
+++ b/src/xdisp.c	Fri Feb 25 21:21:53 1994 +0000
@@ -2062,9 +2062,10 @@
 	      prop = Fget_char_property (position, Qinvisible, ww);
 	      /* This is just an estimate to give reasonable
 		 performance; nothing should go wrong if it is too small.  */
-	      XFASTINT (limit) = pos + 50;
-	      endpos
-		= Fnext_single_property_change (position, Qinvisible,
+	      limit = Fnext_overlay_change (position);
+	      if (XFASTINT (limit) > pos + 50)
+		XFASTINT (limit) = pos + 50;
+	      endpos = Fnext_single_property_change (position, Qinvisible,
 						Fcurrent_buffer (), limit);
 	      if (INTEGERP (endpos))
 		next_invisible = XINT (endpos);