From fe3d692136d42b84037165c6a53fe7f700342552 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Fri, 25 Feb 1994 21:21:53 +0000 Subject: [PATCH] (display_text_line): Allow for invisible overlays in next_invisible lookahead. --- src/xdisp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/xdisp.c b/src/xdisp.c index da7af7d5b73..d304d25378d 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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); -- 2.39.5