diff options
| author | Kenichi Handa | 2000-04-13 23:38:19 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2000-04-13 23:38:19 +0000 |
| commit | d3f40cbd579627891b9ca5a6dce0d94a94e69796 (patch) | |
| tree | 76e9261f63da886042b0effcf3067188d2f0da59 /src | |
| parent | 9d3d591637ded7baf89361e823b820fb4983d161 (diff) | |
| download | emacs-d3f40cbd579627891b9ca5a6dce0d94a94e69796.tar.gz emacs-d3f40cbd579627891b9ca5a6dce0d94a94e69796.zip | |
(update_compositions): If FROM and TO is not in a
valid range, do nothing.
Diffstat (limited to 'src')
| -rw-r--r-- | src/composite.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/composite.c b/src/composite.c index 440bce3b41f..085458db521 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -475,6 +475,10 @@ update_compositions (from, to, check_mask) | |||
| 475 | Lisp_Object prop, hook; | 475 | Lisp_Object prop, hook; |
| 476 | int start, end; | 476 | int start, end; |
| 477 | 477 | ||
| 478 | /* If FROM and TO are not in a valid range, do nothing. */ | ||
| 479 | if (! (BEGV <= from && from <= to && to <= ZV)) | ||
| 480 | return; | ||
| 481 | |||
| 478 | if (check_mask & CHECK_HEAD) | 482 | if (check_mask & CHECK_HEAD) |
| 479 | { | 483 | { |
| 480 | /* FROM should be at composition boundary. But, insertion or | 484 | /* FROM should be at composition boundary. But, insertion or |