From 452294c2bf34b33ea8c2fa9d9b750a7c33599d6d Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 25 Sep 2001 08:21:22 +0000 Subject: [PATCH] (send_process): Disable composition if from_byte < 0. From Kenichi Handa . --- src/process.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/process.c b/src/process.c index 751bf1bdc29..474b21f2476 100644 --- a/src/process.c +++ b/src/process.c @@ -3324,8 +3324,13 @@ send_process (proc, buf, len, object) to = string_byte_to_char (object, from_byte + len); } - if (from_byte >= 0 && coding->composing != COMPOSITION_DISABLED) - coding_save_composition (coding, from, to, object); + if (coding->composing != COMPOSITION_DISABLED) + { + if (from_byte >= 0) + coding_save_composition (coding, from, to, object); + else + coding->composing = COMPOSITION_DISABLED; + } if (STRING_BYTES (XSTRING (XPROCESS (proc)->encoding_buf)) < require) XPROCESS (proc)->encoding_buf = make_uninit_string (require); -- 2.39.2