Commit eadc0bf8 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(handle_invisible_prop): Don't try to skip over

invisible text if end of text is already reached.
parent 14028d57
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment