vim-patch:9.0.0670: no space for command line when there is a tabline

Problem:    No space for command line when there is a tabline.
Solution:   Correct computation of where the command line should be.
            (closes vim/vim#11295)
c9f5f73206
(cherry picked from commit 31996f7748)
This commit is contained in:
zeertzjq
2022-10-06 18:48:29 +08:00
committed by github-actions[bot]
parent 947ec159ae
commit 9857cc1dbf
4 changed files with 41 additions and 3 deletions

View File

@@ -225,6 +225,16 @@ func Test_changing_cmdheight()
call StopVimInTerminal(buf)
endfunc
func Test_cmdheight_tabline()
CheckScreendump
let buf = RunVimInTerminal('-c "set ls=2" -c "set stal=2" -c "set cmdheight=1"', {'rows': 6})
call VerifyScreenDump(buf, 'Test_cmdheight_tabline_1', {})
" clean up
call StopVimInTerminal(buf)
endfunc
func Test_map_completion()
if !has('cmdline_compl')
return