diff options
| author | Glenn Morris | 2014-06-11 15:33:14 -0400 |
|---|---|---|
| committer | Glenn Morris | 2014-06-11 15:33:14 -0400 |
| commit | d29d249207dbb944ea93275ea8b8ea07f59c1e82 (patch) | |
| tree | ed19dc45de0f0822b038df22509ce111b2d5e4ac /src | |
| parent | b765f1fe83a0df149ad783f7dae8ea01f71e680d (diff) | |
| parent | df907af0ddfc4282a6184f1b516cd92dbdf0093f (diff) | |
| download | emacs-d29d249207dbb944ea93275ea8b8ea07f59c1e82.tar.gz emacs-d29d249207dbb944ea93275ea8b8ea07f59c1e82.zip | |
Merge from emacs-24; up to 2014-06-02T14:17:07Z!michael.albinus@gmx.de
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xdisp.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6733cf176ca..0e2af2d766e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-06-11 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (set_cursor_from_row): Fix an off-by-one error when | ||
| 4 | matching overlay strings with 'cursor' property against buffer | ||
| 5 | positions traversed in the glyph row. (Bug#17744) | ||
| 6 | |||
| 1 | 2014-06-11 Jan Djärv <jan.h.d@swipnet.se> | 7 | 2014-06-11 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 8 | ||
| 3 | * nsterm.h (EmacsApp): Always compile in shouldKeepRunning, isFirst | 9 | * nsterm.h (EmacsApp): Always compile in shouldKeepRunning, isFirst |
diff --git a/src/xdisp.c b/src/xdisp.c index c592e0c3116..54a8c8beb8f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -14413,7 +14413,7 @@ set_cursor_from_row (struct window *w, struct glyph_row *row, | |||
| 14413 | pos_after, 0); | 14413 | pos_after, 0); |
| 14414 | 14414 | ||
| 14415 | if (prop_pos >= pos_before) | 14415 | if (prop_pos >= pos_before) |
| 14416 | bpos_max = prop_pos - 1; | 14416 | bpos_max = prop_pos; |
| 14417 | } | 14417 | } |
| 14418 | if (INTEGERP (chprop)) | 14418 | if (INTEGERP (chprop)) |
| 14419 | { | 14419 | { |
| @@ -14487,7 +14487,7 @@ set_cursor_from_row (struct window *w, struct glyph_row *row, | |||
| 14487 | pos_after, 0); | 14487 | pos_after, 0); |
| 14488 | 14488 | ||
| 14489 | if (prop_pos >= pos_before) | 14489 | if (prop_pos >= pos_before) |
| 14490 | bpos_max = prop_pos - 1; | 14490 | bpos_max = prop_pos; |
| 14491 | } | 14491 | } |
| 14492 | if (INTEGERP (chprop)) | 14492 | if (INTEGERP (chprop)) |
| 14493 | { | 14493 | { |
| @@ -14517,7 +14517,7 @@ set_cursor_from_row (struct window *w, struct glyph_row *row, | |||
| 14517 | GLYPH_BEFORE and GLYPH_AFTER. */ | 14517 | GLYPH_BEFORE and GLYPH_AFTER. */ |
| 14518 | if (!((row->reversed_p ? glyph > glyphs_end : glyph < glyphs_end) | 14518 | if (!((row->reversed_p ? glyph > glyphs_end : glyph < glyphs_end) |
| 14519 | && BUFFERP (glyph->object) && glyph->charpos == pt_old) | 14519 | && BUFFERP (glyph->object) && glyph->charpos == pt_old) |
| 14520 | && !(bpos_max < pt_old && pt_old <= bpos_covered)) | 14520 | && !(bpos_max <= pt_old && pt_old <= bpos_covered)) |
| 14521 | { | 14521 | { |
| 14522 | /* An empty line has a single glyph whose OBJECT is zero and | 14522 | /* An empty line has a single glyph whose OBJECT is zero and |
| 14523 | whose CHARPOS is the position of a newline on that line. | 14523 | whose CHARPOS is the position of a newline on that line. |