]> git.eshelyaron.com Git - emacs.git/commitdiff
(update_compositions): If FROM and TO is not in a
authorKenichi Handa <handa@m17n.org>
Thu, 13 Apr 2000 23:38:19 +0000 (23:38 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 13 Apr 2000 23:38:19 +0000 (23:38 +0000)
valid range, do nothing.

src/composite.c

index 440bce3b41ff4dd26733d7ecdd51d1ea50d0b8b2..085458db5217eb849359e008f429eceeffbc780d 100644 (file)
@@ -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