diff options
| author | Kenichi Handa | 2001-01-19 03:50:40 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2001-01-19 03:50:40 +0000 |
| commit | 9ee6df62dd9f70219cd3e75f5bdddcccbb342dce (patch) | |
| tree | e4f160ebcce05a7cc938d06e2473308bc9368267 | |
| parent | e6ebcbbed862fb28a1c61317d1e96948078ccaa3 (diff) | |
| download | emacs-9ee6df62dd9f70219cd3e75f5bdddcccbb342dce.tar.gz emacs-9ee6df62dd9f70219cd3e75f5bdddcccbb342dce.zip | |
(check_composition): Check validity of composition.
| -rw-r--r-- | src/indent.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c index f10221b082a..9e187b80d3f 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -281,7 +281,8 @@ check_composition (pos, pos_byte, point, len, len_byte, width) | |||
| 281 | int id; | 281 | int id; |
| 282 | 282 | ||
| 283 | if (! find_composition (pos, -1, &start, &end, &prop, Qnil) | 283 | if (! find_composition (pos, -1, &start, &end, &prop, Qnil) |
| 284 | || pos != start || point < end) | 284 | || pos != start || point < end |
| 285 | || !COMPOSITION_VALID_P (start, end, prop)) | ||
| 285 | return 0; | 286 | return 0; |
| 286 | if ((id = get_composition_id (pos, pos_byte, end - pos, prop, Qnil)) < 0) | 287 | if ((id = get_composition_id (pos, pos_byte, end - pos, prop, Qnil)) < 0) |
| 287 | return 0; | 288 | return 0; |