Commit fe3d6921 authored by Karl Heuer's avatar Karl Heuer
Browse files

(display_text_line): Allow for invisible overlays in next_invisible lookahead.

parent 3c2dd2c0
......@@ -2062,9 +2062,10 @@ display_text_line (w, start, vpos, hpos, taboffset)
prop = Fget_char_property (position, Qinvisible, ww);
/* This is just an estimate to give reasonable
performance; nothing should go wrong if it is too small. */
XFASTINT (limit) = pos + 50;
endpos
= Fnext_single_property_change (position, Qinvisible,
limit = Fnext_overlay_change (position);
if (XFASTINT (limit) > pos + 50)
XFASTINT (limit) = pos + 50;
endpos = Fnext_single_property_change (position, Qinvisible,
Fcurrent_buffer (), limit);
if (INTEGERP (endpos))
next_invisible = XINT (endpos);
......
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