aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/highlight_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-05-21 01:25:15 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-05-21 01:25:15 -0400
commit34957f7ab96671b1dbea63e074254a97594c4734 (patch)
tree0bfe78ab12a4215371f75454e3e9d1be5c9842ad /test/functional/ui/highlight_spec.lua
parent8e20ba9fbd691955fa20bdba3dd5ff66d16f923c (diff)
parent582fb03f5149bca8f1f52dddbbd0c3e8b5276467 (diff)
downloadrneovim-34957f7ab96671b1dbea63e074254a97594c4734.tar.gz
rneovim-34957f7ab96671b1dbea63e074254a97594c4734.tar.bz2
rneovim-34957f7ab96671b1dbea63e074254a97594c4734.zip
Merge #4800 'syntax: foo=NONE should clear hi group'
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r--test/functional/ui/highlight_spec.lua41
1 files changed, 41 insertions, 0 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua
index 0229b8bbf7..85fca4d7ca 100644
--- a/test/functional/ui/highlight_spec.lua
+++ b/test/functional/ui/highlight_spec.lua
@@ -302,6 +302,47 @@ describe('Default highlight groups', function()
{1:-- INSERT --} |
]], {[1] = {foreground = Screen.colors.Red, background = Screen.colors.Green}})
end)
+ it('can be cleared by assigning NONE', function()
+ execute('syn keyword TmpKeyword neovim')
+ execute('hi link TmpKeyword ErrorMsg')
+ insert('neovim')
+ screen:expect([[
+ {1:neovi^m} |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ |
+ ]], {
+ [1] = {foreground = Screen.colors.White, background = Screen.colors.Red}
+ })
+ execute("hi ErrorMsg term=NONE cterm=NONE ctermfg=NONE ctermbg=NONE"
+ .. " gui=NONE guifg=NONE guibg=NONE guisp=NONE")
+ screen:expect([[
+ neovi^m |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ |
+ ]], {})
+ end)
end)
describe('guisp (special/undercurl)', function()