summaryrefslogtreecommitdiff
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2004-08-03 05:12:00 +0000
committerKenichi Handa <handa@m17n.org>2004-08-03 05:12:00 +0000
commit160a708c6f0841732ce9c5b3b3c3e3e6defa3e7c (patch)
tree1d6d1afb96cfd361bd572d84d2bef11a8c78b336 /src/coding.c
parent8cc08515f406edb4f485c8bdad003be05d48a665 (diff)
downloademacs-160a708c6f0841732ce9c5b3b3c3e3e6defa3e7c.tar.gz
(decode_coding_string): Adjust coding->consumed, and
etc. with shrinked_bytes.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c
index c1394d0f135..7f87abce34d 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -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);