aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-05-28 15:12:42 +0800
committerGitHub <noreply@github.com>2022-05-28 15:12:42 +0800
commit77d9c672f82d260dc5421519a2f78ed1acc95d6a (patch)
tree61341cf26ae0317caa2ab4ffe24dd27461f5bf63 /test/functional
parent285e73894250204ec423495288a6c28baddd9c59 (diff)
downloadrneovim-77d9c672f82d260dc5421519a2f78ed1acc95d6a.tar.gz
rneovim-77d9c672f82d260dc5421519a2f78ed1acc95d6a.tar.bz2
rneovim-77d9c672f82d260dc5421519a2f78ed1acc95d6a.zip
fix(winbar): fix winbar disappear or glitch when moving a split (#18775)
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/ui/winbar_spec.lua36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/functional/ui/winbar_spec.lua b/test/functional/ui/winbar_spec.lua
index d4c6d50fed..476da0d19f 100644
--- a/test/functional/ui/winbar_spec.lua
+++ b/test/functional/ui/winbar_spec.lua
@@ -459,4 +459,40 @@ describe('winbar', function()
|
]]}
end)
+
+ it('works correctly when moving a split', function()
+ screen:try_resize(45, 6)
+ command('set winbar=')
+ command('vsplit')
+ command('setlocal winbar=foo')
+ screen:expect([[
+ {1:foo }│ |
+ ^ │{3:~ }|
+ {3:~ }│{3:~ }|
+ {3:~ }│{3:~ }|
+ {4:[No Name] }{2:[No Name] }|
+ |
+ ]])
+
+ command('wincmd L')
+ screen:expect([[
+ │{1:foo }|
+ {3:~ }│^ |
+ {3:~ }│{3:~ }|
+ {3:~ }│{3:~ }|
+ {2:[No Name] }{4:[No Name] }|
+ |
+ ]])
+
+ command('wincmd w')
+ command('wincmd L')
+ screen:expect([[
+ {1:foo }│^ |
+ │{3:~ }|
+ {3:~ }│{3:~ }|
+ {3:~ }│{3:~ }|
+ {2:[No Name] }{4:[No Name] }|
+ |
+ ]])
+ end)
end)