]> git.eshelyaron.com Git - emacs.git/commitdiff
(handle_auto_composed_prop): Fix the case of returning
authorKenichi Handa <handa@m17n.org>
Sun, 23 Nov 2003 07:32:11 +0000 (07:32 +0000)
committerKenichi Handa <handa@m17n.org>
Sun, 23 Nov 2003 07:32:11 +0000 (07:32 +0000)
HANDLED_RECOMPUTE_PROPS.

src/xdisp.c

index 12dca91d0ac4245ecbba9e71753066a34b08ce94..bc8ed03868cd5068daf29dc44ba24a101b67b110 100644 (file)
@@ -3829,7 +3829,10 @@ handle_auto_composed_prop (it)
          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;
        }
     }