summaryrefslogtreecommitdiffstats
path: root/src/gui_mac.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-09-02 18:33:56 +0200
committerBram Moolenaar <Bram@vim.org>2017-09-02 18:33:56 +0200
commitcf4b00c856ef714482d8d060332ac9a4d74e6b88 (patch)
treea17efb73ba6cffbdc8c17adbec2152ac41c35803 /src/gui_mac.c
parentda22b8cc8b1b96fabd5a4c35c57b04a351340fb1 (diff)
patch 8.0.1038: strike-through text not supportedv8.0.1038
Problem: Strike-through text not supported. Solution: Add support for the "strikethrough" attribute. (Christian Brabandt, Ken Takata)
Diffstat (limited to 'src/gui_mac.c')
-rw-r--r--src/gui_mac.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui_mac.c b/src/gui_mac.c
index dea648ac88..8803487dea 100644
--- a/src/gui_mac.c
+++ b/src/gui_mac.c
@@ -3899,6 +3899,11 @@ draw_string_QD(int row, int col, char_u *s, int len, int flags)
MoveTo(FILL_X(col), FILL_Y(row + 1) - 1);
LineTo(FILL_X(col + len) - 1, FILL_Y(row + 1) - 1);
}
+ if (flags & DRAW_STRIKE)
+ {
+ MoveTo(FILL_X(col), FILL_Y(row + 1) - gui.char_height/2);
+ LineTo(FILL_X(col + len) - 1, FILL_Y(row + 1) - gui.char_height/2);
+ }
}
if (flags & DRAW_UNDERC)