summaryrefslogtreecommitdiff
path: root/src/composite.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>2000-04-13 23:38:19 +0000
committerKenichi Handa <handa@m17n.org>2000-04-13 23:38:19 +0000
commitd0d156fae419f023eddac3626c3c7b42fa281392 (patch)
tree153ead2a84ece47202c11a041c6ff5443c6dd6ab /src/composite.c
parent629c64a4fff82bc3ce823e13bcfe60f9d4e978af (diff)
downloademacs-d0d156fae419f023eddac3626c3c7b42fa281392.tar.gz
(update_compositions): If FROM and TO is not in a
valid range, do nothing.
Diffstat (limited to 'src/composite.c')
-rw-r--r--src/composite.c4
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)
Lisp_Object prop, hook;
int start, end;
+ /* If FROM and TO are not in a valid range, do nothing. */
+ if (! (BEGV <= from && from <= to && to <= ZV))
+ return;
+
if (check_mask & CHECK_HEAD)
{
/* FROM should be at composition boundary. But, insertion or