diff options
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c index 26a234c6522..40fe424fe05 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -4380,7 +4380,10 @@ coding_save_composition (coding, from, to, obj) | |||
| 4380 | Lisp_Object prop; | 4380 | Lisp_Object prop; |
| 4381 | int start, end; | 4381 | int start, end; |
| 4382 | 4382 | ||
| 4383 | coding->composing = COMPOSITION_DISABLED; | 4383 | if (coding->composing == COMPOSITION_DISABLED) |
| 4384 | return; | ||
| 4385 | if (!coding->cmp_data) | ||
| 4386 | coding_allocate_composition_data (coding, from); | ||
| 4384 | if (!find_composition (from, to, &start, &end, &prop, obj) | 4387 | if (!find_composition (from, to, &start, &end, &prop, obj) |
| 4385 | || end > to) | 4388 | || end > to) |
| 4386 | return; | 4389 | return; |
| @@ -4389,7 +4392,6 @@ coding_save_composition (coding, from, to, obj) | |||
| 4389 | || end > to)) | 4392 | || end > to)) |
| 4390 | return; | 4393 | return; |
| 4391 | coding->composing = COMPOSITION_NO; | 4394 | coding->composing = COMPOSITION_NO; |
| 4392 | coding_allocate_composition_data (coding, from); | ||
| 4393 | do | 4395 | do |
| 4394 | { | 4396 | { |
| 4395 | if (COMPOSITION_VALID_P (start, end, prop)) | 4397 | if (COMPOSITION_VALID_P (start, end, prop)) |