aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-07-20 16:57:38 +0200
committerGitHub <noreply@github.com>2022-07-20 16:57:38 +0200
commit598cbcae4a9fdb3fd4cfbe1d1fed400c5eb0fb9c (patch)
tree0f152a355703138232be0e1d3cd0ad989e86612b /test
parent1a2560c2dcec7ef9bd5fb6d0523f8e80df01a9f5 (diff)
parent9879fd5d087cc3939f91f4714b0f95f03a78c011 (diff)
downloadrneovim-598cbcae4a9fdb3fd4cfbe1d1fed400c5eb0fb9c.tar.gz
rneovim-598cbcae4a9fdb3fd4cfbe1d1fed400c5eb0fb9c.tar.bz2
rneovim-598cbcae4a9fdb3fd4cfbe1d1fed400c5eb0fb9c.zip
Merge pull request #19445 from famiu/fix/local_winbar_tabs
fix: local winbar with tabs
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/winbar_spec.lua45
1 files changed, 45 insertions, 0 deletions
diff --git a/test/functional/ui/winbar_spec.lua b/test/functional/ui/winbar_spec.lua
index 92a6ab2e84..60fa10da87 100644
--- a/test/functional/ui/winbar_spec.lua
+++ b/test/functional/ui/winbar_spec.lua
@@ -578,3 +578,48 @@ describe('winbar', function()
eq('Vim(set):E36: Not enough room', pcall_err(command, 'set winbar=test'))
end)
end)
+
+it('local winbar works with tabs', function()
+ clear()
+ local screen = Screen.new(60, 13)
+ screen:attach()
+ screen:set_default_attr_ids({
+ [1] = {bold = true},
+ [2] = {reverse = true},
+ [3] = {bold = true, foreground = Screen.colors.Blue},
+ [4] = {underline = true, background = Screen.colors.LightGray}
+ })
+ meths.set_option_value('winbar', 'foo', { scope = 'local', win = 0 })
+ command('tabnew')
+ screen:expect([[
+ {4: [No Name] }{1: [No Name] }{2: }{4:X}|
+ ^ |
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ |
+ ]])
+ command('tabnext')
+ screen:expect{grid=[[
+ {1: [No Name] }{4: [No Name] }{2: }{4:X}|
+ {1:foo }|
+ ^ |
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ {3:~ }|
+ |
+ ]]}
+end)