Mercurial > emacs
diff src/indent.c @ 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 | c4b41e529384 |
| children | e9a72f369214 |
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))
