Patch 9.0.0187
Problem: Command line height changes when maximizing window height.
Solution: Do not change the command line height. (closes #10885)
Files: src/window.c, src/testdir/test_window_cmd.vim
*** ../vim-9.0.0186/src/window.c 2022-08-02 12:15:48.724595679 +0100
--- src/window.c 2022-08-10 17:22:15.471934501 +0100
***************
*** 5666,5673 ****
if (full_screen && msg_scrolled == 0 && row < cmdline_row)
screen_fill(row, cmdline_row, 0, (int)Columns, ' ', ' ', 0);
cmdline_row = row;
- p_ch = MAX(Rows - cmdline_row, 0);
- curtab->tp_ch_used = p_ch;
msg_row = row;
msg_col = 0;
--- 5666,5671 ----
*** ../vim-9.0.0186/src/testdir/test_window_cmd.vim 2022-07-30
16:54:01.867698285 +0100
--- src/testdir/test_window_cmd.vim 2022-08-10 17:21:40.207952268 +0100
***************
*** 38,43 ****
--- 38,63 ----
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
*** ../vim-9.0.0186/src/version.c 2022-08-10 16:48:59.395127789 +0100
--- src/version.c 2022-08-10 17:03:23.664140284 +0100
***************
*** 737,738 ****
--- 737,740 ----
{ /* Add new patch number below this line */
+ /**/
+ 187,
/**/
--
Facepalm statement #5: "Petrol getting more expensive? Not for me, I'm always
tanking for 20 dollars"
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220810162345.BEFBD1C4F14%40moolenaar.net.