diff options
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c index fd53972d6b1..b9c5c2acc52 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -2161,8 +2161,9 @@ but the contents viewed as characters do change. */) | |||
| 2161 | else | 2161 | else |
| 2162 | { | 2162 | { |
| 2163 | unsigned char tmp[MAX_MULTIBYTE_LENGTH]; | 2163 | unsigned char tmp[MAX_MULTIBYTE_LENGTH]; |
| 2164 | int c = BYTE8_TO_CHAR (*p); | ||
| 2164 | 2165 | ||
| 2165 | bytes = CHAR_STRING (*p, tmp); | 2166 | bytes = CHAR_STRING (c, tmp); |
| 2166 | *p = tmp[0]; | 2167 | *p = tmp[0]; |
| 2167 | TEMP_SET_PT_BOTH (pos + 1, pos + 1); | 2168 | TEMP_SET_PT_BOTH (pos + 1, pos + 1); |
| 2168 | bytes--; | 2169 | bytes--; |