changeset 107231:36765efaf0d1

xdisp.c (reseat_to_string): Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Fri, 26 Feb 2010 10:23:19 +0900
parents 0255e27f26c9 (current diff) 8e842bd86ccf (diff)
children 45d0913cbd81
files
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Feb 25 19:48:53 2010 -0500
+++ b/src/ChangeLog	Fri Feb 26 10:23:19 2010 +0900
@@ -1,3 +1,7 @@
+2010-02-26  Kenichi Handa  <handa@m17n.org>
+
+	* xdisp.c (reseat_to_string): Fix previous change.
+
 2010-02-26  David Reitter  <david.reitter@gmail.com>
 
 	* nsfont.m (nsfont_draw): ns_antialias_text should be a
--- a/src/xdisp.c	Thu Feb 25 19:48:53 2010 -0500
+++ b/src/xdisp.c	Fri Feb 26 10:23:19 2010 +0900
@@ -5611,7 +5611,7 @@
   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,