aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKim F. Storm2005-02-22 11:04:18 +0000
committerKim F. Storm2005-02-22 11:04:18 +0000
commite3198b7748fa446ffc4025fc6515b730462dab8e (patch)
tree57c1ca96eb5d5a5e01327d276dfe9bcc98ebd9d0 /src
parentc8500765dca721734b1f8623d95b15bf51a0e40b (diff)
downloademacs-e3198b7748fa446ffc4025fc6515b730462dab8e.tar.gz
emacs-e3198b7748fa446ffc4025fc6515b730462dab8e.zip
(fast_find_position): Fix search for start of overlay.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index eb1a7d75fca..dd10551d5fa 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -20775,7 +20775,7 @@ fast_find_position (w, charpos, hpos, vpos, x, y, stop)
20775 have a STOP object and previous row's end glyph came from STOP. */ 20775 have a STOP object and previous row's end glyph came from STOP. */
20776 if (!NILP (stop)) 20776 if (!NILP (stop))
20777 { 20777 {
20778 struct glyph_row *prev = row-1; 20778 struct glyph_row *prev;
20779 while ((prev = row - 1, prev >= first) 20779 while ((prev = row - 1, prev >= first)
20780 && MATRIX_ROW_END_CHARPOS (prev) == charpos 20780 && MATRIX_ROW_END_CHARPOS (prev) == charpos
20781 && prev->used[TEXT_AREA] > 0) 20781 && prev->used[TEXT_AREA] > 0)
@@ -20784,8 +20784,8 @@ fast_find_position (w, charpos, hpos, vpos, x, y, stop)
20784 glyph = end + prev->used[TEXT_AREA]; 20784 glyph = end + prev->used[TEXT_AREA];
20785 while (--glyph >= end 20785 while (--glyph >= end
20786 && INTEGERP (glyph->object)); 20786 && INTEGERP (glyph->object));
20787 if (glyph >= end 20787 if (glyph < end
20788 && !EQ (stop, glyph->object)) 20788 || !EQ (stop, glyph->object))
20789 break; 20789 break;
20790 row = prev; 20790 row = prev;
20791 } 20791 }