Mercurial > emacs
changeset 107223:7a3076e0d7b6
xdisp.c (reseat_to_string): Fix previous change (bug#5609).
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 25 Feb 2010 11:29:35 +0900 |
parents | 68454434bdc4 |
children | d8cd64428fb5 |
files | src/ChangeLog src/xdisp.c |
diffstat | 2 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Thu Feb 25 09:56:44 2010 +0900 +++ b/src/ChangeLog Thu Feb 25 11:29:35 2010 +0900 @@ -1,3 +1,7 @@ +2010-02-25 Kenichi Handa <handa@m17n.org> + + * xdisp.c (reseat_to_string): Fix previous change (bug#5609). + 2010-02-24 Jan Djärv <jan.h.d@swipnet.se> * xterm.c (XTflash): Move declarations before statements.
--- a/src/xdisp.c Thu Feb 25 09:56:44 2010 +0900 +++ b/src/xdisp.c Thu Feb 25 11:29:35 2010 +0900 @@ -5610,8 +5610,13 @@ it->stop_charpos = charpos; if (s == NULL && it->multibyte_p) - composition_compute_stop_pos (&it->cmp_it, charpos, -1, it->end_charpos, - it->string); + { + EMACS_INT endpos = charpos + SCHARS (it->string); + if (endpos > it->end_charpos) + endpos = it->end_charpos; + composition_compute_stop_pos (&it->cmp_it, charpos, -1, endpos, + it->string); + } CHECK_IT (it); }