diff options
| author | Gerd Moellmann | 2001-09-25 08:21:22 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-09-25 08:21:22 +0000 |
| commit | 452294c2bf34b33ea8c2fa9d9b750a7c33599d6d (patch) | |
| tree | 43b60f5ff59a32df1b6efe0e987fa670917ea135 /src | |
| parent | ab750f9c1977a0e8a530d5c9eb3f6879b7a5ec40 (diff) | |
| download | emacs-452294c2bf34b33ea8c2fa9d9b750a7c33599d6d.tar.gz emacs-452294c2bf34b33ea8c2fa9d9b750a7c33599d6d.zip | |
(send_process): Disable composition if from_byte < 0.
From Kenichi Handa <handa@etl.go.jp>.
Diffstat (limited to 'src')
| -rw-r--r-- | src/process.c | 9 |
1 files 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) | |||
| 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); |