diff options
| author | Po Lu | 2021-12-24 15:48:27 +0800 |
|---|---|---|
| committer | Po Lu | 2021-12-24 15:51:34 +0800 |
| commit | 552b74ba9ec0fa0486b86bea561e499ca13e92ca (patch) | |
| tree | 895ee6e3b317d82536c2499caab875d89d228427 /src | |
| parent | c9f05cbe3fc7290cc4874afa378cdf8062e84e2f (diff) | |
| download | emacs-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.m | 2 |
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 | ||