aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2021-12-24 15:48:27 +0800
committerPo Lu2021-12-24 15:51:34 +0800
commit552b74ba9ec0fa0486b86bea561e499ca13e92ca (patch)
tree895ee6e3b317d82536c2499caab875d89d228427 /src
parentc9f05cbe3fc7290cc4874afa378cdf8062e84e2f (diff)
downloademacs-552b74ba9ec0fa0486b86bea561e499ca13e92ca.tar.gz
emacs-552b74ba9ec0fa0486b86bea561e499ca13e92ca.zip
Fix text decoration display on stretch glyphs with no box on NS
* src/nsterm.m (ns_dumpglyphs_stretch): Draw decorations if there is no box.
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 8428c689fd6..591e28f20b9 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -3793,7 +3793,7 @@ ns_dumpglyphs_stretch (struct glyph_string *s)
3793 then decorations will be drawn after drawing the box in 3793 then decorations will be drawn after drawing the box in
3794 ns_draw_glyph_string, in order to prevent them from being 3794 ns_draw_glyph_string, in order to prevent them from being
3795 overwritten by the box. */ 3795 overwritten by the box. */
3796 if (s->face->box != FACE_NO_BOX) 3796 if (s->face->box == FACE_NO_BOX)
3797 ns_draw_text_decoration (s, face, fgCol, NSWidth (glyphRect), 3797 ns_draw_text_decoration (s, face, fgCol, NSWidth (glyphRect),
3798 NSMinX (glyphRect)); 3798 NSMinX (glyphRect));
3799 3799