aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/highlight_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r--test/functional/ui/highlight_spec.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua
index 288c2a214f..2bbc29b78f 100644
--- a/test/functional/ui/highlight_spec.lua
+++ b/test/functional/ui/highlight_spec.lua
@@ -1812,6 +1812,22 @@ describe("'winhighlight' highlight", function()
]])
end)
+ it('works for background color in rightleft window in vsplit #22640', function()
+ screen:try_resize(40, 6)
+ insert('aa')
+ command('setlocal rightleft')
+ command('botright vsplit')
+ command('setlocal winhl=Normal:Background1')
+ screen:expect([[
+ aa│{1: ^aa}|
+ {0: ~}│{2: ~}|
+ {0: ~}│{2: ~}|
+ {0: ~}│{2: ~}|
+ {4:[No Name] [+] }{3:[No Name] [+] }|
+ |
+ ]])
+ end)
+
it('handles undefined groups', function()
command("set winhl=Normal:Background1")
screen:expect([[