changeset 108118:769f66a9a7ef

composite.c (Ffind_composition_internal): Fix the return value for an automatic composition.
author Kenichi Handa <handa@etlken>
date Mon, 26 Apr 2010 21:03:28 +0900
parents 641672d44942 (current diff) fb2072139c80 (diff)
children beeec356b30f 07667a45e678
files
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Apr 25 15:16:58 2010 -0700
+++ b/src/ChangeLog	Mon Apr 26 21:03:28 2010 +0900
@@ -1,3 +1,8 @@
+2010-04-26  Kenichi Handa  <handa@m17n.org>
+
+	* composite.c (Ffind_composition_internal): Fix the return value
+	for an automatic composition.
+
 2010-04-25  Dan Nicolaescu  <dann@ics.uci.edu>
 
 	Remove all NO_ARG_ARRAY uses.
--- a/src/composite.c	Sun Apr 25 15:16:58 2010 -0700
+++ b/src/composite.c	Mon Apr 26 21:03:28 2010 +0900
@@ -1674,7 +1674,7 @@
 
       if (find_automatic_composition (from, to, &s, &e, &gstring, string)
 	  && (e <= XINT (pos) ? e > end : s < start))
-	return list3 (make_number (start), make_number (end), gstring);
+	return list3 (make_number (s), make_number (e), gstring);
     }
   if (!COMPOSITION_VALID_P (start, end, prop))
     return Fcons (make_number (start), Fcons (make_number (end),