Mercurial > vim
comparison src/evalfunc.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 | 3d0e042ec13c |
children | c7e95667d14b |
comparison
equal
deleted
inserted
replaced
12316:a1d3a6d6af2c | 12317:2a8890b80923 |
---|---|
11841 break; | 11841 break; |
11842 | 11842 |
11843 case 's': | 11843 case 's': |
11844 if (TOLOWER_ASC(what[1]) == 'p') /* sp[#] */ | 11844 if (TOLOWER_ASC(what[1]) == 'p') /* sp[#] */ |
11845 p = highlight_color(id, what, modec); | 11845 p = highlight_color(id, what, modec); |
11846 /* strikeout */ | |
11847 else if (TOLOWER_ASC(what[1]) == 't' && | |
11848 TOLOWER_ASC(what[2]) == 'r') | |
11849 p = highlight_has_attr(id, HL_STRIKETHROUGH, modec); | |
11846 else /* standout */ | 11850 else /* standout */ |
11847 p = highlight_has_attr(id, HL_STANDOUT, modec); | 11851 p = highlight_has_attr(id, HL_STANDOUT, modec); |
11848 break; | 11852 break; |
11849 | 11853 |
11850 case 'u': | 11854 case 'u': |