diff src/xdisp.c @ 73200:f16075a82800

(handle_fontified_prop): Don't fontify at EOB.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 01 Oct 2006 16:44:43 +0000
parents ec1038b88e4e
children 47d70d72da4c bb0e318b7c53
line wrap: on
line diff
--- a/src/xdisp.c	Sun Oct 01 15:45:16 2006 +0000
+++ b/src/xdisp.c	Sun Oct 01 16:44:43 2006 +0000
@@ -3246,7 +3246,9 @@
       && !NILP (Vrun_hooks)
       && (pos = make_number (IT_CHARPOS (*it)),
 	  prop = Fget_char_property (pos, Qfontified, Qnil),
-	  NILP (prop)))
+	  /* Ignore the special cased nil value always present at EOB since
+	     no amount of fontifying will be able to change it.  */
+	  NILP (prop) && IT_CHARPOS (*it) < Z))
     {
       int count = SPECPDL_INDEX ();
       Lisp_Object val;