From 7379cfce157cbd68045970dafa92c6216ced84b3 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 26 Feb 2010 10:17:28 +0900 Subject: [PATCH] xdisp.c (reseat_to_string): Fix previous change. --- src/ChangeLog | 4 ++++ src/xdisp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 0b67340c1fd..8ad6941a806 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-02-26 Kenichi Handa + + * xdisp.c (reseat_to_string): Fix previous change. + 2010-02-25 Kenichi Handa * xdisp.c (reseat_to_string): Fix previous change (bug#5609). diff --git a/src/xdisp.c b/src/xdisp.c index 1a078edd074..9ece458e77e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -5611,7 +5611,7 @@ reseat_to_string (it, s, string, charpos, precision, field_width, multibyte) it->stop_charpos = charpos; if (s == NULL && it->multibyte_p) { - EMACS_INT endpos = charpos + SCHARS (it->string); + EMACS_INT endpos = SCHARS (it->string); if (endpos > it->end_charpos) endpos = it->end_charpos; composition_compute_stop_pos (&it->cmp_it, charpos, -1, endpos, -- 2.39.5