diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index 1880581c0a1..a0acad309af 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -2497,7 +2497,9 @@ current buffer is cleared. */) | |||
| 2497 | 2497 | ||
| 2498 | if (ASCII_BYTE_P (*p)) | 2498 | if (ASCII_BYTE_P (*p)) |
| 2499 | p++, pos++; | 2499 | p++, pos++; |
| 2500 | else if (EQ (flag, Qt) && (bytes = MULTIBYTE_LENGTH (p, pend)) > 0) | 2500 | else if (EQ (flag, Qt) |
| 2501 | && ! CHAR_BYTE8_HEAD_P (*p) | ||
| 2502 | && (bytes = MULTIBYTE_LENGTH (p, pend)) > 0) | ||
| 2501 | p += bytes, pos += bytes; | 2503 | p += bytes, pos += bytes; |
| 2502 | else | 2504 | else |
| 2503 | { | 2505 | { |