emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master dc15e70: Fix display of line-prefix with fringe bitmaps


From: Eli Zaretskii
Subject: master dc15e70: Fix display of line-prefix with fringe bitmaps
Date: Fri, 29 May 2020 10:02:42 -0400 (EDT)

branch: master
commit dc15e70ddd0dd01a24aa181d8ebb4718df0592c9
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix display of line-prefix with fringe bitmaps
    
    * 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 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/xdisp.c b/src/xdisp.c
index f5a8f2e..47246d0 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]