Mercurial > emacs
changeset 35405:d11cb64840ee
(check_composition): Check validity of composition.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Fri, 19 Jan 2001 03:50:40 +0000 |
parents | 82012b72ca72 |
children | 06c94b0d85d2 |
files | src/indent.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;