# HG changeset patch # User Richard M. Stallman # Date 1006151133 0 # Node ID 7ed8a77c5b40ee051264adfb5826dead010c8fd6 # Parent 0605a90581d4d04d470d2ec2adfc1b81bab73111 (current_column_1): Fix handling of scan_bytes for mb chars. diff -r 0605a90581d4 -r 7ed8a77c5b40 src/indent.c --- 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))