]> git.eshelyaron.com Git - emacs.git/commitdiff
(decode_coding_string): Adjust coding->consumed, and
authorKenichi Handa <handa@m17n.org>
Tue, 3 Aug 2004 05:12:00 +0000 (05:12 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 3 Aug 2004 05:12:00 +0000 (05:12 +0000)
etc. with shrinked_bytes.

src/coding.c

index c1394d0f135bd5105a4373afc3902086be468a6e..7f87abce34dc7c757d5c8086293203ea2e333634 100644 (file)
@@ -6238,6 +6238,11 @@ decode_coding_string (str, coding, nocopy)
                   shrinked_bytes - from);
   free_conversion_buffer (&buf);
 
+  coding->consumed += shrinked_bytes;
+  coding->consumed_char += shrinked_bytes;
+  coding->produced += shrinked_bytes;
+  coding->produced_char += shrinked_bytes;
+
   if (coding->cmp_data && coding->cmp_data->used)
     coding_restore_composition (coding, newstr);
   coding_free_composition_data (coding);