diff options
author | Jaskaran Singh <jaskaransingh7654321@gmail.com> | 2019-09-14 03:16:19 +0530 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-13 14:46:19 -0700 |
commit | 3afb397407af3c94fc82d694186e8d451e625237 (patch) | |
tree | 6178036f4d81fd706eff8926f96876eb195faeb4 /test/functional/ui/highlight_spec.lua | |
parent | 35341b34b835eeb184ac9f0e2078ce31f6612fd7 (diff) | |
download | rneovim-3afb397407af3c94fc82d694186e8d451e625237.tar.gz rneovim-3afb397407af3c94fc82d694186e8d451e625237.tar.bz2 rneovim-3afb397407af3c94fc82d694186e8d451e625237.zip |
syntax, TUI: support "strikethrough"
fix #3436
Includes:
vim-patch:8.0.1038: strike-through text not supported
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r-- | test/functional/ui/highlight_spec.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua index 47b2d23c9b..f40f658275 100644 --- a/test/functional/ui/highlight_spec.lua +++ b/test/functional/ui/highlight_spec.lua @@ -412,6 +412,32 @@ describe('highlight', function() ]]) end) + it('strikethrough', function() + screen:detach() + screen = Screen.new(25,6) + screen:attach() + feed_command('syntax on') + feed_command('syn keyword TmpKeyword foo') + feed_command('hi! Awesome cterm=strikethrough gui=strikethrough') + feed_command('hi link TmpKeyword Awesome') + insert([[ + foo + foo bar + foobarfoobar + ]]) + screen:expect([[ + {1:foo} | + {1:foo} bar | + foobarfoobar | + ^ | + {2:~ }| + | + ]],{ + [1] = {strikethrough = true}, + [2] = {bold = true, foreground = Screen.colors.Blue1}, + }) + end) + it('guisp (special/undercurl)', function() feed_command('syntax on') feed_command('syn keyword TmpKeyword neovim') |