diff options
| author | Richard M. Stallman | 2001-11-19 06:25:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-11-19 06:25:33 +0000 |
| commit | 36974b5ecb3f36b50366a6142e1590f44177219c (patch) | |
| tree | da55561a5a69b3e7922eb6c48f7a7e347cf734be /src | |
| parent | 9d551c66b1f1e34c84ff2d508a554d573aff1699 (diff) | |
| download | emacs-36974b5ecb3f36b50366a6142e1590f44177219c.tar.gz emacs-36974b5ecb3f36b50366a6142e1590f44177219c.zip | |
(current_column_1): Fix handling of scan_bytes for mb chars.
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c index 2e57e3775f5..c869c624c66 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -616,10 +616,12 @@ current_column_1 () | |||
| 616 | unsigned char *ptr; | 616 | unsigned char *ptr; |
| 617 | int bytes, width, wide_column; | 617 | int bytes, width, wide_column; |
| 618 | 618 | ||
| 619 | scan_byte--; | ||
| 620 | ptr = BYTE_POS_ADDR (scan_byte); | 619 | ptr = BYTE_POS_ADDR (scan_byte); |
| 621 | MULTIBYTE_BYTES_WIDTH (ptr, dp); | 620 | MULTIBYTE_BYTES_WIDTH (ptr, dp); |
| 622 | scan_byte += bytes; | 621 | scan_byte += bytes; |
| 622 | /* Subtract one to compensate for the increment | ||
| 623 | that is going to happen below. */ | ||
| 624 | scan_byte--; | ||
| 623 | col += width; | 625 | col += width; |
| 624 | } | 626 | } |
| 625 | else if (ctl_arrow && (c < 040 || c == 0177)) | 627 | else if (ctl_arrow && (c < 040 || c == 0177)) |