(code_convert_region): Update coding->cmp_data->char_offset
before calling decode_coding.
This commit is contained in:
parent
93dec0196b
commit
0e79d66738
2 changed files with 11 additions and 2 deletions
|
@ -5516,7 +5516,11 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
|
|||
if (encodep)
|
||||
result = encode_coding (coding, src, dst, len_byte, 0);
|
||||
else
|
||||
result = decode_coding (coding, src, dst, len_byte, 0);
|
||||
{
|
||||
if (coding->composing != COMPOSITION_DISABLED)
|
||||
coding->cmp_data->char_offset = from + inserted;
|
||||
result = decode_coding (coding, src, dst, len_byte, 0);
|
||||
}
|
||||
|
||||
/* The buffer memory is now:
|
||||
+--------+-------converted-text----+--+------original-text----+---+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue