Commit f5f9a3da authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(code_convert_region): Call adjust_before_replace

in the no-conversion case.  Adjust GPT, ZV and Z in chars.
parent 60ea6052
......@@ -4009,6 +4009,8 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
coding->produced = len_byte;
if (multibyte)
{
adjust_before_replace (from, from_byte, to, to_byte);
/* We still may have to combine byte at the head and the
tail of the text in the region. */
if (GPT != to)
......@@ -4019,9 +4021,9 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace)
GPT_BYTE -= len_byte;
ZV_BYTE -= len_byte;
Z_BYTE -= len_byte;
GPT -= len_byte;
ZV -= len_byte;
Z -= len_byte;
GPT -= len;
ZV -= len;
Z -= len;
adjust_after_replace (from, from_byte, to, to_byte,
coding->produced_char, len_byte, replace);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment