aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/highlight_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-04-06 10:03:37 +0200
committerbfredl <bjorn.linse@gmail.com>2023-04-06 17:15:16 +0200
commit0f42aa1f2a860ce6d72a825b397fe09c875613b5 (patch)
tree97e6ba7e8d23448ecabc9c43498e229e8bcbeb33 /test/functional/ui/highlight_spec.lua
parent63bffae9e0ba45a6d646f78dadd1e87c8497db78 (diff)
downloadrneovim-0f42aa1f2a860ce6d72a825b397fe09c875613b5.tar.gz
rneovim-0f42aa1f2a860ce6d72a825b397fe09c875613b5.tar.bz2
rneovim-0f42aa1f2a860ce6d72a825b397fe09c875613b5.zip
fix(highlight): use winhl=Foo:Bar even when Bar is empty
fixes #22906
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r--test/functional/ui/highlight_spec.lua17
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()