Mercurial > vim
diff src/testdir/test_window_cmd.vim @ 29694:cb4ddbe3caf3 v9.0.0187
patch 9.0.0187: command line height changes when maximizing window height
Commit: https://github.com/vim/vim/commit/96bde99bf890acd9952863a02c1d15edca2000e1
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 10 17:23:12 2022 +0100
patch 9.0.0187: command line height changes when maximizing window height
Problem: Command line height changes when maximizing window height.
Solution: Do not change the command line height. (closes https://github.com/vim/vim/issues/10885)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 10 Aug 2022 18:30:03 +0200 |
parents | 8a243ecfe2dd |
children | 86eb4aba16c3 |
line wrap: on
line diff
--- a/src/testdir/test_window_cmd.vim +++ b/src/testdir/test_window_cmd.vim @@ -38,6 +38,26 @@ func Test_window_cmd_cmdwin_with_vsp() set ls&vim endfunc +func Test_cmdheight_not_changed() + set cmdheight=2 + set winminheight=0 + augroup Maximize + autocmd WinEnter * wincmd _ + augroup END + split + tabnew + tabfirst + call assert_equal(2, &cmdheight) + + tabonly! + only + set winminwidth& cmdheight& + augroup Maximize + au! + augroup END + augroup! Maximize +endfunc + " Test for jumping to windows func Test_window_jump() new