Mercurial > vim
diff src/gui.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 | 60cf03e59402 |
children | dfb8254aa735 |
line wrap: on
line diff
--- a/src/gui.c +++ b/src/gui.c @@ -2396,6 +2396,7 @@ gui_outstr_nowrap( /* Do we underline the text? */ if (hl_mask_todo & HL_UNDERLINE) draw_flags |= DRAW_UNDERL; + #else /* Do we underline the text? */ if ((hl_mask_todo & HL_UNDERLINE) || (hl_mask_todo & HL_ITALIC)) @@ -2405,6 +2406,10 @@ gui_outstr_nowrap( if (hl_mask_todo & HL_UNDERCURL) draw_flags |= DRAW_UNDERC; + /* Do we strikethrough the text? */ + if (hl_mask_todo & HL_STRIKETHROUGH) + draw_flags |= DRAW_STRIKE; + /* Do we draw transparently? */ if (flags & GUI_MON_TRS_CURSOR) draw_flags |= DRAW_TRANSP;