1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-25 10:47:00 +00:00

xdisp.c (reseat_to_string): Fix previous change (bug#5609).

This commit is contained in:
Kenichi Handa 2010-02-25 11:29:35 +09:00
parent 0ca10bb75f
commit cc6c7c75bb
2 changed files with 11 additions and 2 deletions

View File

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

View File

@ -5610,8 +5610,13 @@ reseat_to_string (it, s, string, charpos, precision, field_width, multibyte)
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);
}