# HG changeset patch # User Kenichi Handa # Date 955669099 0 # Node ID 151b7ae3b21fae37328b491e0d3ee6fe47086b33 # Parent 2f92cc9bf55f450b6ae295a2e9246f2e7541ec4a (update_compositions): If FROM and TO is not in a valid range, do nothing. diff -r 2f92cc9bf55f -r 151b7ae3b21f src/composite.c --- 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