diff options
| author | Eli Zaretskii | 2010-11-25 20:38:09 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2010-11-25 20:38:09 +0200 |
| commit | 1e2dddbe93d0b4290eff58bb288ca96387d9415d (patch) | |
| tree | 336ec691ebf6ce3aaa377ab8e5337a12f6436ebd /src | |
| parent | fd042993b7e4017c9fd26fe0cfac3a50a9dcdaa0 (diff) | |
| download | emacs-1e2dddbe93d0b4290eff58bb288ca96387d9415d.tar.gz emacs-1e2dddbe93d0b4290eff58bb288ca96387d9415d.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ba298d8aa48..ce18c71a1cf 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-11-25 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (set_cursor_from_row): Don't forget to consider the | ||
| 4 | `cursor' property of the first character in overlay strings. | ||
| 5 | (Bug#7474) | ||
| 6 | |||
| 1 | 2010-11-24 Jan Djärv <jan.h.d@swipnet.se> | 7 | 2010-11-24 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 8 | ||
| 3 | * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask) | 9 | * 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, | |||
| 12943 | 12943 | ||
| 12944 | if (tem) | 12944 | if (tem) |
| 12945 | cursor = glyph; | 12945 | cursor = glyph; |
| 12946 | for (glyph += incr; | 12946 | for ( ; |
| 12947 | (row->reversed_p ? glyph > stop : glyph < stop) | 12947 | (row->reversed_p ? glyph > stop : glyph < stop) |
| 12948 | && EQ (glyph->object, str); | 12948 | && EQ (glyph->object, str); |
| 12949 | glyph += incr) | 12949 | glyph += incr) |