]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix display of line-prefix with fringe bitmaps
authorEli Zaretskii <eliz@gnu.org>
Fri, 29 May 2020 14:00:52 +0000 (17:00 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 29 May 2020 14:00:52 +0000 (17:00 +0300)
* src/xdisp.c (try_window_id): Don't use this optimization if a
glyph row from which to start display begins with a display
property that draws into the fringes.  (Bug#41584)

src/xdisp.c

index f5a8f2eabf891a58b553f8436a35053ba1a871d7..47246d0690f368a2528de8a3ddc2903bbd44b459 100644 (file)
@@ -20338,6 +20338,12 @@ try_window_id (struct window *w)
 
       if (! init_to_row_end (&it, w, last_unchanged_at_beg_row))
        GIVE_UP (18);
+      /* Give up if the row starts with a display property that draws
+        on the fringes, since that could prevent correct display of
+        line-prefix and wrap-prefix.  */
+      if (it.sp > 1
+         && it.method == GET_FROM_IMAGE && it.image_id == -1)
+       GIVE_UP (26);
       start_pos = it.current.pos;
 
       /* Start displaying new lines in the desired matrix at the same