aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-08 16:25:03 +0800
committerGitHub <noreply@github.com>2023-05-08 16:25:03 +0800
commit4ecf6fdfd857b52c0bab9a8dbfc760364ac2677b (patch)
tree1c6587e6674159b0fe8eb53a7d06e71a8c1d2c65 /test/functional
parenta961bb71010b5579df9d05aae17fe224f8066e94 (diff)
downloadrneovim-4ecf6fdfd857b52c0bab9a8dbfc760364ac2677b.tar.gz
rneovim-4ecf6fdfd857b52c0bab9a8dbfc760364ac2677b.tar.bz2
rneovim-4ecf6fdfd857b52c0bab9a8dbfc760364ac2677b.zip
fix(statusline): bail out properly on negative row (#23535)
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/ui/winbar_spec.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/functional/ui/winbar_spec.lua b/test/functional/ui/winbar_spec.lua
index 970f9c3d76..3b79f4328d 100644
--- a/test/functional/ui/winbar_spec.lua
+++ b/test/functional/ui/winbar_spec.lua
@@ -713,3 +713,26 @@ describe('local winbar with tabs', function()
]]}
end)
end)
+
+it('winbar works properly when redrawing is postponed #23534', function()
+ clear({args = {
+ '-c', 'set laststatus=2 lazyredraw',
+ '-c', 'setlocal statusline=(statusline) winbar=(winbar)',
+ '-c', 'call nvim_input(":<Esc>")',
+ }})
+ local screen = Screen.new(60, 6)
+ screen:attach()
+ screen:set_default_attr_ids({
+ [0] = {foreground = Screen.colors.Blue, bold = true},
+ [1] = {bold = true},
+ [2] = {bold = true, reverse = true},
+ })
+ screen:expect([[
+ {1:(winbar) }|
+ ^ |
+ {0:~ }|
+ {0:~ }|
+ {2:(statusline) }|
+ |
+ ]])
+end)