From 68e3a8f141204681f90d23fce372f5bc0c3328f3 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Tue, 14 Apr 1998 10:21:04 +0000 Subject: [PATCH] (code_convert_region): Call adjust_after_insert also in unibyte mode. --- src/coding.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/coding.c b/src/coding.c index e94cee5e2de..602737ad6bf 100644 --- a/src/coding.c +++ b/src/coding.c @@ -4026,7 +4026,11 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace) coding->produced_char = len; } else - coding->produced_char = len_byte; + { + if (!replace) + adjust_after_insert (from, from_byte, to, to_byte, len_byte); + coding->produced_char = len_byte; + } return 0; } -- 2.39.2