]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix text decoration display on stretch glyphs with no box on NS
authorPo Lu <luangruo@yahoo.com>
Fri, 24 Dec 2021 07:48:27 +0000 (15:48 +0800)
committerPo Lu <luangruo@yahoo.com>
Fri, 24 Dec 2021 07:51:34 +0000 (15:51 +0800)
* src/nsterm.m (ns_dumpglyphs_stretch): Draw decorations if
there is no box.

src/nsterm.m

index 8428c689fd654ab9440d0d1f785b3883fec35ef4..591e28f20b92a1117d4f1d572aa3d485e83f69d3 100644 (file)
@@ -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));