in the no-conversion case. Adjust GPT, ZV and Z in chars.
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)
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);
}