diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-09-20 09:18:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-20 09:18:59 +0200 |
commit | c6cc56d69cf294e8b91602a2f34a261325691286 (patch) | |
tree | 9bf4c66aa01406f25fbe22677baeee405b34c80c /test | |
parent | b2265bb72c268c95180dc92c129be11fd87f995d (diff) | |
parent | ab92575753874f9dee73e722b6fddd8dd49e2f13 (diff) | |
download | rneovim-c6cc56d69cf294e8b91602a2f34a261325691286.tar.gz rneovim-c6cc56d69cf294e8b91602a2f34a261325691286.tar.bz2 rneovim-c6cc56d69cf294e8b91602a2f34a261325691286.zip |
Merge pull request #25155 from glepnir/fix_winhl
fix(highlight): winhl receive wrong argument
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/ui/highlight_spec.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua index c68f4cf34c..931e1f9985 100644 --- a/test/functional/ui/highlight_spec.lua +++ b/test/functional/ui/highlight_spec.lua @@ -8,6 +8,7 @@ local feed_command, eq = helpers.feed_command, helpers.eq local curbufmeths = helpers.curbufmeths local funcs = helpers.funcs local meths = helpers.meths +local exec_lua = helpers.exec_lua describe('colorscheme compatibility', function() before_each(function() @@ -2641,4 +2642,17 @@ describe('highlight namespaces', function() | ]]} end) + + it('winhl does not accept invalid value #24586', function() + local res = exec_lua([[ + local curwin = vim.api.nvim_get_current_win() + vim.api.nvim_command("set winhl=Normal:Visual") + local _, msg = pcall(vim.api.nvim_command,"set winhl='Normal:Wrong'") + return { msg, vim.wo[curwin].winhl } + ]]) + eq({ + "Vim(set):E5248: Invalid character in group name", + "Normal:Visual", + },res) + end) end) |