diff options
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/coding.c b/src/coding.c index 0b71e91c4db..aa68631d4e1 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -4009,6 +4009,8 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace) | |||
| 4009 | coding->produced = len_byte; | 4009 | coding->produced = len_byte; |
| 4010 | if (multibyte) | 4010 | if (multibyte) |
| 4011 | { | 4011 | { |
| 4012 | adjust_before_replace (from, from_byte, to, to_byte); | ||
| 4013 | |||
| 4012 | /* We still may have to combine byte at the head and the | 4014 | /* We still may have to combine byte at the head and the |
| 4013 | tail of the text in the region. */ | 4015 | tail of the text in the region. */ |
| 4014 | if (GPT != to) | 4016 | if (GPT != to) |
| @@ -4019,9 +4021,9 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace) | |||
| 4019 | GPT_BYTE -= len_byte; | 4021 | GPT_BYTE -= len_byte; |
| 4020 | ZV_BYTE -= len_byte; | 4022 | ZV_BYTE -= len_byte; |
| 4021 | Z_BYTE -= len_byte; | 4023 | Z_BYTE -= len_byte; |
| 4022 | GPT -= len_byte; | 4024 | GPT -= len; |
| 4023 | ZV -= len_byte; | 4025 | ZV -= len; |
| 4024 | Z -= len_byte; | 4026 | Z -= len; |
| 4025 | adjust_after_replace (from, from_byte, to, to_byte, | 4027 | adjust_after_replace (from, from_byte, to, to_byte, |
| 4026 | coding->produced_char, len_byte, replace); | 4028 | coding->produced_char, len_byte, replace); |
| 4027 | } | 4029 | } |