From d45a49e3b9cd21cb317ec4040154b2261fc6f0c4 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 9 Sep 2008 02:09:32 +0000 Subject: [PATCH] (FORWARD_CHAR): Fix calculation of (POSITION).pos_byte. --- src/ChangeLog | 10 ++++++++++ src/composite.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 17796a2732..21219613b3 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 dc1dd370c3..12120f05eb 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) -- 2.39.2