From: Kenichi Handa Date: Tue, 9 Sep 2008 02:09:32 +0000 (+0000) Subject: (FORWARD_CHAR): Fix calculation of (POSITION).pos_byte. X-Git-Tag: emacs-pretest-23.0.90~2950 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d45a49e3b9cd21cb317ec4040154b2261fc6f0c4;p=emacs.git (FORWARD_CHAR): Fix calculation of (POSITION).pos_byte. --- diff --git a/src/ChangeLog b/src/ChangeLog index 17796a27326..21219613b39 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,13 @@ +2008-09-09 Kenichi Handa + + * composite.c (FORWARD_CHAR): Fix calculation + of (POSITION).pos_byte. + +2008-09-08 Kenichi Handa + + * indent.c (Fvertical_motion): Be sure to set + it_overshoot_expected if it.cmp_it.id is non-nengative. + 2008-09-07 Andreas Schwab * callproc.c (Fcall_process): Don't hold references to string data diff --git a/src/composite.c b/src/composite.c index dc1dd370c3b..12120f05ebb 100644 --- a/src/composite.c +++ b/src/composite.c @@ -1197,8 +1197,8 @@ struct position_record } \ else \ { \ - (POSITION).p += BYTES_BY_CHAR_HEAD (*((POSITION).p)); \ (POSITION).pos_byte += BYTES_BY_CHAR_HEAD (*((POSITION).p)); \ + (POSITION).p += BYTES_BY_CHAR_HEAD (*((POSITION).p)); \ } \ } while (0)