From: Eli Zaretskii Date: Thu, 25 Nov 2010 18:38:09 +0000 (+0200) Subject: Fix bug #7474 with cursor positioning in overlay strings. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~45^2~119 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1e2dddbe93d0b4290eff58bb288ca96387d9415d;p=emacs.git Fix bug #7474 with cursor positioning in overlay strings. xdisp.c (set_cursor_from_row): Don't forget to consider the `cursor' property of the first character in overlay strings. --- diff --git a/src/ChangeLog b/src/ChangeLog index ba298d8aa48..ce18c71a1cf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2010-11-25 Eli Zaretskii + + * xdisp.c (set_cursor_from_row): Don't forget to consider the + `cursor' property of the first character in overlay strings. + (Bug#7474) + 2010-11-24 Jan Djärv * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask) diff --git a/src/xdisp.c b/src/xdisp.c index b2d81cb60e9..fd80d7a0208 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -12943,7 +12943,7 @@ set_cursor_from_row (struct window *w, struct glyph_row *row, if (tem) cursor = glyph; - for (glyph += incr; + for ( ; (row->reversed_p ? glyph > stop : glyph < stop) && EQ (glyph->object, str); glyph += incr)