From 2201c41ce3bb861455004b938978384bbe781071 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 1 Oct 2006 16:44:43 +0000 Subject: [PATCH] (handle_fontified_prop): Don't fontify at EOB. --- src/ChangeLog | 4 ++++ src/xdisp.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index f68f2453bd1..c62e4fbe031 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2006-10-01 Stefan Monnier + + * xdisp.c (handle_fontified_prop): Don't fontify at EOB. + 2006-09-30 Eli Zaretskii * config.in Regenerated. diff --git a/src/xdisp.c b/src/xdisp.c index c766f714335..a8da5aa848e 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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; -- 2.39.2