diff options
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index 6083af6eabc..7b352d169c4 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -5516,7 +5516,11 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace) | |||
| 5516 | if (encodep) | 5516 | if (encodep) |
| 5517 | result = encode_coding (coding, src, dst, len_byte, 0); | 5517 | result = encode_coding (coding, src, dst, len_byte, 0); |
| 5518 | else | 5518 | else |
| 5519 | result = decode_coding (coding, src, dst, len_byte, 0); | 5519 | { |
| 5520 | if (coding->composing != COMPOSITION_DISABLED) | ||
| 5521 | coding->cmp_data->char_offset = from + inserted; | ||
| 5522 | result = decode_coding (coding, src, dst, len_byte, 0); | ||
| 5523 | } | ||
| 5520 | 5524 | ||
| 5521 | /* The buffer memory is now: | 5525 | /* The buffer memory is now: |
| 5522 | +--------+-------converted-text----+--+------original-text----+---+ | 5526 | +--------+-------converted-text----+--+------original-text----+---+ |