diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-03-12 12:10:27 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-12 12:10:27 +0800 |
commit | 172227a44642b67ec8af5b438e5373a3daf61fdb (patch) | |
tree | 3249c062a84ca4c9592d522b499c5834208bab09 /test/functional/ui/highlight_spec.lua | |
parent | 1c4b3d41b538078234282cfba74e5cf07c42c916 (diff) | |
download | rneovim-172227a44642b67ec8af5b438e5373a3daf61fdb.tar.gz rneovim-172227a44642b67ec8af5b438e5373a3daf61fdb.tar.bz2 rneovim-172227a44642b67ec8af5b438e5373a3daf61fdb.zip |
fix(screen): correctly draw background and eob with 'rightleft' (#22640)
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r-- | test/functional/ui/highlight_spec.lua | 16 |
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([[ |