diff options
author | bfredl <bjorn.linse@gmail.com> | 2023-04-06 17:38:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 17:38:16 +0200 |
commit | dd80ee0ca948bb548a8af804523ea7ea29c18279 (patch) | |
tree | 25160427c07459cdc4b9a12a4672af62c5830ab8 /test/functional/ui/highlight_spec.lua | |
parent | e29bc03c046b3a137c2e36b4d34c119b277d62b2 (diff) | |
parent | 0f42aa1f2a860ce6d72a825b397fe09c875613b5 (diff) | |
download | rneovim-dd80ee0ca948bb548a8af804523ea7ea29c18279.tar.gz rneovim-dd80ee0ca948bb548a8af804523ea7ea29c18279.tar.bz2 rneovim-dd80ee0ca948bb548a8af804523ea7ea29c18279.zip |
Merge pull request #22910 from bfredl/nonormal
fix(highlight): use winhl=Foo:Bar even when Bar is empty
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r-- | test/functional/ui/highlight_spec.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua index dce886ac91..fedfaca7ba 100644 --- a/test/functional/ui/highlight_spec.lua +++ b/test/functional/ui/highlight_spec.lua @@ -2432,6 +2432,23 @@ describe("'winhighlight' highlight", function() | ]]} end) + + it('can link to empty highlight group', function() + command 'hi NormalNC guibg=Red' -- czerwone time + command 'set winhl=NormalNC:Normal' + command 'split' + + screen:expect{grid=[[ + ^ | + {0:~ }| + {0:~ }| + {3:[No Name] }| + | + {0:~ }| + {4:[No Name] }| + | + ]]} + end) end) describe('highlight namespaces', function() |