From bcfbd63d881c105047c955cd18b064ac1764a7e9 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 25 Nov 2000 02:08:59 +0000 Subject: [PATCH] (compute_motion): Keep pos_byte in sync with pos. --- src/indent.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/indent.c b/src/indent.c index f5f44d93c40..2f0786c7878 100644 --- a/src/indent.c +++ b/src/indent.c @@ -1171,6 +1171,7 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, if (newpos >= to) { pos = min (to, newpos); + pos_byte = CHAR_TO_BYTE (pos); goto after_loop; } -- 2.39.2