mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
test: added tests for set_height with winminheight=0 and a winbar
This commit is contained in:
parent
a3751f5de2
commit
68e7a6a6dc
@ -285,6 +285,22 @@ describe('API/win', function()
|
||||
eq(2, window('get_height', nvim('list_wins')[2]))
|
||||
end)
|
||||
|
||||
it('correctly handles height=1', function()
|
||||
nvim('command', 'split')
|
||||
nvim('set_current_win', nvim('list_wins')[1])
|
||||
window('set_height', nvim('list_wins')[2], 1)
|
||||
eq(1, window('get_height', nvim('list_wins')[2]))
|
||||
end)
|
||||
|
||||
it('correctly handles height=1 with a winbar', function()
|
||||
nvim('command', 'set winbar=foobar')
|
||||
nvim('command', 'set winminheight=0')
|
||||
nvim('command', 'split')
|
||||
nvim('set_current_win', nvim('list_wins')[1])
|
||||
window('set_height', nvim('list_wins')[2], 1)
|
||||
eq(1, window('get_height', nvim('list_wins')[2]))
|
||||
end)
|
||||
|
||||
it('do not cause ml_get errors with foldmethod=expr #19989', function()
|
||||
insert([[
|
||||
aaaaa
|
||||
|
Loading…
Reference in New Issue
Block a user