From: Po Lu Date: Fri, 24 Dec 2021 07:48:27 +0000 (+0800) Subject: Fix text decoration display on stretch glyphs with no box on NS X-Git-Tag: emacs-29.0.90~3476 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=552b74ba9ec0fa0486b86bea561e499ca13e92ca;p=emacs.git 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. --- 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));