fix(ui): wincmd _ should not increase 'cmdheight' above 0 (#33056)

(cherry picked from commit 703f4037c4)
This commit is contained in:
luukvbaal
2025-03-27 12:52:46 +01:00
committed by github-actions[bot]
parent 5e4365b83d
commit ccb078bbb0
2 changed files with 11 additions and 5 deletions

View File

@@ -1352,6 +1352,12 @@ describe('cmdline height', function()
-- cmdheight unchanged.
eq(1, eval('&cmdheight'))
end)
it('not increased to 0 from 1 with wincmd _', function()
command('set cmdheight=0 laststatus=0')
command('wincmd _')
eq(0, eval('&cmdheight'))
end)
end)
describe('cmdheight=0', function()