+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.
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);
}