diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-12-07 18:41:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 18:41:17 +0100 |
commit | be768be6b7ee896277971593e9287a86bc41efb2 (patch) | |
tree | d5ff487244ec949489d826b353c92e21ccf28d9e /test/functional | |
parent | ddf48193e6f86163a0ecae76bc4b802b07135acb (diff) | |
parent | 23dcef92695c0042323d9cbf8d559f04741d2f00 (diff) | |
download | rneovim-be768be6b7ee896277971593e9287a86bc41efb2.tar.gz rneovim-be768be6b7ee896277971593e9287a86bc41efb2.tar.bz2 rneovim-be768be6b7ee896277971593e9287a86bc41efb2.zip |
Merge pull request #16556 from zeertzjq/hl-change-update
fix(highlight): always update window highlight if highlight changed
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/ui/highlight_spec.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua index c00d30fe32..0983d0d4ad 100644 --- a/test/functional/ui/highlight_spec.lua +++ b/test/functional/ui/highlight_spec.lua @@ -276,6 +276,24 @@ describe('highlight defaults', function() ]], {[0] = {bold=true, foreground=Screen.colors.Blue}}) end) + it('linking updates window highlight immediately #16552', function() + screen:try_resize(53, 4) + screen:expect([[ + ^ | + {0:~ }| + {0:~ }| + | + ]], {[0] = {bold=true, foreground=Screen.colors.Blue}}) + feed_command("hi NonTextAlt guifg=Red") + feed_command("hi! link NonText NonTextAlt") + screen:expect([[ + ^ | + {0:~ }| + {0:~ }| + :hi! link NonText NonTextAlt | + ]], {[0] = {foreground=Screen.colors.Red}}) + end) + it('Cursor after `:hi clear|syntax reset` #6508', function() command('highlight clear|syntax reset') eq('guifg=bg guibg=fg', eval([[matchstr(execute('hi Cursor'), '\v(gui|cterm).*$')]])) |