1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 20:00:46 -08:00

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.
This commit is contained in:
Eli Zaretskii 2010-11-25 20:38:09 +02:00
parent fd042993b7
commit 1e2dddbe93
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2010-11-25 Eli Zaretskii <eliz@gnu.org>
* 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 <jan.h.d@swipnet.se>
* nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)

View file

@ -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)