Mercurial > vim
diff src/gui_mac.c @ 12317:2a8890b80923 v8.0.1038
patch 8.0.1038: strike-through text not supported
commit https://github.com/vim/vim/commit/cf4b00c856ef714482d8d060332ac9a4d74e6b88
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 2 18:33:56 2017 +0200
patch 8.0.1038: strike-through text not supported
Problem: Strike-through text not supported.
Solution: Add support for the "strikethrough" attribute. (Christian
Brabandt, Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 02 Sep 2017 18:45:04 +0200 |
parents | 5a5709918a98 |
children | 972ea22c946f |
line wrap: on
line diff
--- a/src/gui_mac.c +++ b/src/gui_mac.c @@ -3899,6 +3899,11 @@ draw_string_QD(int row, int col, char_u 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)