changeset 42105:09cc243e2d14

(code_convert_region): Update coding->cmp_data->char_offset before calling decode_coding.
author Richard M. Stallman <rms@gnu.org>
date Mon, 17 Dec 2001 15:33:12 +0000
parents d69c2368e549
children bc0b85435fe4
files src/coding.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Mon Dec 17 15:21:06 2001 +0000
+++ b/src/coding.c	Mon Dec 17 15:33:12 2001 +0000
@@ -5516,7 +5516,11 @@
       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----+---+