changeset 60207:256e23b599d4

(fast_find_position): Fix search for start of overlay.
author Kim F. Storm <storm@cua.dk>
date Tue, 22 Feb 2005 11:04:18 +0000
parents 150efcb3a0d8
children 84bb59b0b21d
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Feb 22 11:04:07 2005 +0000
+++ b/src/xdisp.c	Tue Feb 22 11:04:18 2005 +0000
@@ -20775,7 +20775,7 @@
      have a STOP object and previous row's end glyph came from STOP.  */
   if (!NILP (stop))
     {
-      struct glyph_row *prev = row-1;
+      struct glyph_row *prev;
       while ((prev = row - 1, prev >= first)
 	     && MATRIX_ROW_END_CHARPOS (prev) == charpos
 	     && prev->used[TEXT_AREA] > 0)
@@ -20784,8 +20784,8 @@
 	  glyph = end + prev->used[TEXT_AREA];
 	  while (--glyph >= end
 		 && INTEGERP (glyph->object));
-	  if (glyph >= end
-	      && !EQ (stop, glyph->object))
+	  if (glyph < end
+	      || !EQ (stop, glyph->object))
 	    break;
 	  row = prev;
 	}