changeset 108117:fb2072139c80

composite.c (Ffind_composition_internal): Fix the return value for an automatic composition.
author Kenichi Handa <handa@etlken>
date Mon, 26 Apr 2010 21:02:08 +0900
parents 8cf84fb217cc
children 769f66a9a7ef c6c7a71f6e16
files src/ChangeLog src/composite.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Apr 26 10:22:02 2010 +0900
+++ b/src/ChangeLog	Mon Apr 26 21:02:08 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	Mon Apr 26 10:22:02 2010 +0900
+++ b/src/composite.c	Mon Apr 26 21:02:08 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),