From d3f40cbd579627891b9ca5a6dce0d94a94e69796 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 13 Apr 2000 23:38:19 +0000 Subject: [PATCH] (update_compositions): If FROM and TO is not in a valid range, do nothing. --- src/composite.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/composite.c b/src/composite.c index 440bce3b41..085458db52 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 -- 2.20.1