changeset 89650:6b2fe2bf684e

(handle_auto_composed_prop): Fix the case of returning HANDLED_RECOMPUTE_PROPS.
author Kenichi Handa <handa@m17n.org>
date Sun, 23 Nov 2003 07:32:11 +0000
parents e28cf34dc47f
children 65f1f8091f15
files src/xdisp.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sun Nov 23 02:17:43 2003 +0000
+++ b/src/xdisp.c	Sun Nov 23 07:32:11 2003 +0000
@@ -3829,7 +3829,10 @@
 	  unbind_to (count, Qnil);
 
 	  val = Fget_char_property (args[1], Qauto_composed, it->string);
-	  if (! NILP (val) && this_pos == pos)
+	  /* Return HANDLED_RECOMPUTE_PROPS only if function fontified
+	     something.  This avoids an endless loop if they failed to
+	     fontify the text for which reason ever.  */
+	  if (! NILP (val))
 	    handled = HANDLED_RECOMPUTE_PROPS;
 	}
     }