changeset 28581:151b7ae3b21f

(update_compositions): If FROM and TO is not in a valid range, do nothing.
author Kenichi Handa <handa@m17n.org>
date Thu, 13 Apr 2000 23:38:19 +0000
parents 2f92cc9bf55f
children c5731a195ae1
files src/composite.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/composite.c	Thu Apr 13 23:37:37 2000 +0000
+++ b/src/composite.c	Thu Apr 13 23:38:19 2000 +0000
@@ -475,6 +475,10 @@
   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