aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-01-12 11:09:52 +0800
committerPo Lu2022-01-12 11:09:52 +0800
commit9376f456af5824b0bda5b5dff62fc6f6cb1231bf (patch)
treecb02147bfd3b59d0a9b99ce006f292a0222e50db /src
parentf2fcea2716405aac9a3a6013b284b6b7be634725 (diff)
downloademacs-9376f456af5824b0bda5b5dff62fc6f6cb1231bf.tar.gz
emacs-9376f456af5824b0bda5b5dff62fc6f6cb1231bf.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 80cf80f7d8e..4925ecb6d3f 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4126,7 +4126,9 @@ x_draw_glyph_string (struct glyph_string *s)
4126 area_max_x = area_x + area_width - 1; 4126 area_max_x = area_x + area_width - 1;
4127 4127
4128 decoration_width = s->width; 4128 decoration_width = s->width;
4129 if (area_max_x < (s->x + decoration_width - 1)) 4129 if (!s->row->mode_line_p
4130 && !s->row->tab_line_p
4131 && area_max_x < (s->x + decoration_width - 1))
4130 decoration_width -= (s->x + decoration_width - 1) - area_max_x; 4132 decoration_width -= (s->x + decoration_width - 1) - area_max_x;
4131 4133
4132 /* Draw relief if not yet drawn. */ 4134 /* Draw relief if not yet drawn. */