changeset 39429:9de129194439

(send_process): Disable composition if from_byte < 0. From Kenichi Handa <handa@etl.go.jp>.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 25 Sep 2001 08:21:22 +0000
parents 79c1d1f5dcf5
children 48633cf4ce7c
files src/process.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Mon Sep 24 22:30:31 2001 +0000
+++ b/src/process.c	Tue Sep 25 08:21:22 2001 +0000
@@ -3324,8 +3324,13 @@
 	  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);