# HG changeset patch # User Kenichi Handa # Date 979876240 0 # Node ID d11cb64840ee0fe4fa64a256387710c7eca0ab81 # Parent 82012b72ca721073288f91388f4ad3371c409265 (check_composition): Check validity of composition. diff -r 82012b72ca72 -r d11cb64840ee src/indent.c --- a/src/indent.c Fri Jan 19 03:50:24 2001 +0000 +++ b/src/indent.c Fri Jan 19 03:50:40 2001 +0000 @@ -281,7 +281,8 @@ int id; if (! find_composition (pos, -1, &start, &end, &prop, Qnil) - || pos != start || point < end) + || pos != start || point < end + || !COMPOSITION_VALID_P (start, end, prop)) return 0; if ((id = get_composition_id (pos, pos_byte, end - pos, prop, Qnil)) < 0) return 0;