Fix for finding a static composition.
authorKenichi Handa <handa@etlken>
Wed, 26 May 2010 01:14:51 +0000 (10:14 +0900)
committerKenichi Handa <handa@etlken>
Wed, 26 May 2010 01:14:51 +0000 (10:14 +0900)
src/ChangeLog
src/composite.c

index 56879ff..d451e87 100644 (file)
@@ -1,3 +1,8 @@
+2010-05-26  Kenichi Handa  <handa@m17n.org>
+
+       * composite.c (composition_compute_stop_pos): Fix condition for
+       backward scanning.
+
 2010-05-25  Glenn Morris  <rgm@gnu.org>
 
        * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
index dd07ab8..8a549f4 100644 (file)
@@ -1124,7 +1124,7 @@ composition_compute_stop_pos (cmp_it, charpos, bytepos, endpos, string)
            }
        }
     }
-  else
+  else if (charpos > endpos)
     {
       /* Search backward for a pattern that may be composed and the
         position of (possibly) the last character of the match is