From: Gerd Moellmann Date: Thu, 25 May 2000 15:53:05 +0000 (+0000) Subject: (handle_invisible_prop): Don't try to skip over X-Git-Tag: emacs-pretest-21.0.90~3718 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=eadc0bf89c04df826c96ebff62fb2a73fe6d11c3;p=emacs.git (handle_invisible_prop): Don't try to skip over invisible text if end of text is already reached. --- diff --git a/src/xdisp.c b/src/xdisp.c index fef2b9429c8..0171f963f34 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -2046,7 +2046,8 @@ handle_invisible_prop (it) XSETFASTINT (charpos, IT_STRING_CHARPOS (*it)); prop = Fget_text_property (charpos, Qinvisible, it->string); - if (!NILP (prop)) + if (!NILP (prop) + && IT_STRING_CHARPOS (*it) < it->end_charpos) { handled = HANDLED_RECOMPUTE_PROPS; @@ -2100,7 +2101,8 @@ handle_invisible_prop (it) prop = Fget_char_property (pos, Qinvisible, it->window); /* If we are on invisible text, skip over it. */ - if (TEXT_PROP_MEANS_INVISIBLE (prop)) + if (TEXT_PROP_MEANS_INVISIBLE (prop) + && IT_CHARPOS (*it) < it->end_charpos) { /* Record whether we have to display an ellipsis for the invisible text. */