aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 }