]> code.delx.au - gnu-emacs/commitdiff
(handle_fontified_prop): Don't fontify at EOB.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 1 Oct 2006 16:44:43 +0000 (16:44 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sun, 1 Oct 2006 16:44:43 +0000 (16:44 +0000)
src/ChangeLog
src/xdisp.c

index f68f2453bd14297b2c99868d29dc3775ba653da2..c62e4fbe03156a3c39902115324cd14e15106bb3 100644 (file)
@@ -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.
index c766f714335778540ae2bfcfaac1154514c2d817..a8da5aa848e8d06f3eeaaefad45e100a5ce2a2e3 100644 (file)
@@ -3246,7 +3246,9 @@ handle_fontified_prop (it)
       && !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;