diff options
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') |