Mercurial > emacs
changeset 41258:7ed8a77c5b40
(current_column_1): Fix handling of scan_bytes for mb chars.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 19 Nov 2001 06:25:33 +0000 |
parents | 0605a90581d4 |
children | 52a7263af449 |
files | src/indent.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/indent.c Mon Nov 19 06:24:36 2001 +0000 +++ b/src/indent.c Mon Nov 19 06:25:33 2001 +0000 @@ -616,10 +616,12 @@ unsigned char *ptr; int bytes, width, wide_column; - scan_byte--; ptr = BYTE_POS_ADDR (scan_byte); MULTIBYTE_BYTES_WIDTH (ptr, dp); scan_byte += bytes; + /* Subtract one to compensate for the increment + that is going to happen below. */ + scan_byte--; col += width; } else if (ctl_arrow && (c < 040 || c == 0177))