From 31bfc35cca6df0d14f4786a9890f3a01b91cfc4c Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 20 May 2011 09:51:38 +0900 Subject: [PATCH] composite.c (find_automatic_composition): Fix previous change. --- src/ChangeLog | 4 ++++ src/composite.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 372bf383fb8..79e5bf677f6 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-05-20 handa + + * composite.c (find_automatic_composition): Fix previous change. + 2011-05-18 Kenichi Handa * composite.c (CHAR_COMPOSABLE_P): Add more check for efficiency. diff --git a/src/composite.c b/src/composite.c index 8f8878e46a9..7849ffa3a18 100644 --- a/src/composite.c +++ b/src/composite.c @@ -1565,7 +1565,7 @@ find_automatic_composition (EMACS_INT pos, EMACS_INT limit, if (limit <= pos) /* case (1) */ { do { - if (cur.pos == limit) + if (cur.pos <= limit) return 0; BACKWARD_CHAR (cur, stop); c = STRING_CHAR (cur.p); -- 2.39.2