changeset 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 346938bc30a1
children 16a7031b0447
files src/ChangeLog src/xdisp.c
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Oct 01 15:45:16 2006 +0000
+++ b/src/ChangeLog	Sun Oct 01 16:44:43 2006 +0000
@@ -1,3 +1,7 @@
+2006-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* xdisp.c (handle_fontified_prop): Don't fontify at EOB.
+
 2006-09-30  Eli Zaretskii  <eliz@gnu.org>
 
 	* config.in Regenerated.
--- 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;