# HG changeset patch # User Karl Heuer # Date 762211313 0 # Node ID b634e16673ab58bb689ed49e558f29a14c6a1c0c # Parent e7c900a464d331e155735152aa0640bcec99ea20 (display_text_line): Allow for invisible overlays in next_invisible lookahead. diff -r e7c900a464d3 -r b634e16673ab src/xdisp.c --- a/src/xdisp.c Fri Feb 25 19:35:58 1994 +0000 +++ b/src/xdisp.c Fri Feb 25 21:21:53 1994 +0000 @@ -2062,9 +2062,10 @@ 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);