(display_text_line): Allow for invisible overlays in next_invisible lookahead.
authorKarl Heuer <kwzh@gnu.org>
Fri, 25 Feb 1994 21:21:53 +0000 (21:21 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 25 Feb 1994 21:21:53 +0000 (21:21 +0000)
src/xdisp.c

index da7af7d..d304d25 100644 (file)
@@ -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);