From 552b74ba9ec0fa0486b86bea561e499ca13e92ca Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 24 Dec 2021 15:48:27 +0800 Subject: [PATCH] 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. --- src/nsterm.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) then decorations will be drawn after drawing the box in ns_draw_glyph_string, in order to prevent them from being overwritten by the box. */ - if (s->face->box != FACE_NO_BOX) + if (s->face->box == FACE_NO_BOX) ns_draw_text_decoration (s, face, fgCol, NSWidth (glyphRect), NSMinX (glyphRect)); -- 2.39.2