]> git.eshelyaron.com Git - emacs.git/commitdiff
(send_process): Disable composition if from_byte < 0.
authorGerd Moellmann <gerd@gnu.org>
Tue, 25 Sep 2001 08:21:22 +0000 (08:21 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 25 Sep 2001 08:21:22 +0000 (08:21 +0000)
From Kenichi Handa <handa@etl.go.jp>.

src/process.c

index 751bf1bdc29108cbf053eadf153bc93907f3d0b1..474b21f24761e6b122f385d2a707c242ddc8d430 100644 (file)
@@ -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);