comparison src/process.c @ 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 9dd4ad9bc53e
children 66e0816837a8
comparison
equal deleted inserted replaced
39428:79c1d1f5dcf5 39429:9de129194439
3322 from_byte = buf - XSTRING (object)->data; 3322 from_byte = buf - XSTRING (object)->data;
3323 from = string_byte_to_char (object, from_byte); 3323 from = string_byte_to_char (object, from_byte);
3324 to = string_byte_to_char (object, from_byte + len); 3324 to = string_byte_to_char (object, from_byte + len);
3325 } 3325 }
3326 3326
3327 if (from_byte >= 0 && coding->composing != COMPOSITION_DISABLED) 3327 if (coding->composing != COMPOSITION_DISABLED)
3328 coding_save_composition (coding, from, to, object); 3328 {
3329 if (from_byte >= 0)
3330 coding_save_composition (coding, from, to, object);
3331 else
3332 coding->composing = COMPOSITION_DISABLED;
3333 }
3329 3334
3330 if (STRING_BYTES (XSTRING (XPROCESS (proc)->encoding_buf)) < require) 3335 if (STRING_BYTES (XSTRING (XPROCESS (proc)->encoding_buf)) < require)
3331 XPROCESS (proc)->encoding_buf = make_uninit_string (require); 3336 XPROCESS (proc)->encoding_buf = make_uninit_string (require);
3332 3337
3333 if (from_byte >= 0) 3338 if (from_byte >= 0)