mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 18:41:48 +00:00
fix(statusline): bail out properly on negative row (#23535)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user