[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 9376f456af: Fix display of text decorations in the mode line
From: |
Po Lu |
Subject: |
master 9376f456af: Fix display of text decorations in the mode line |
Date: |
Tue, 11 Jan 2022 22:10:55 -0500 (EST) |
branch: master
commit 9376f456af5824b0bda5b5dff62fc6f6cb1231bf
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix display of text decorations in the mode line
This is considered a temporary fix until the cause of
fringe-overwriting underlines is established.
* src/xterm.c (x_draw_glyph_string): Don't constrain decorations
if the row is a tab or modeline.
---
src/xterm.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/xterm.c b/src/xterm.c
index 80cf80f7d8..4925ecb6d3 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4126,7 +4126,9 @@ x_draw_glyph_string (struct glyph_string *s)
area_max_x = area_x + area_width - 1;
decoration_width = s->width;
- if (area_max_x < (s->x + decoration_width - 1))
+ if (!s->row->mode_line_p
+ && !s->row->tab_line_p
+ && area_max_x < (s->x + decoration_width - 1))
decoration_width -= (s->x + decoration_width - 1) - area_max_x;
/* Draw relief if not yet drawn. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 9376f456af: Fix display of text decorations in the mode line,
Po Lu <=