Patch 9.0.0326

3 views
Skip to first unread message

Bram Moolenaar

unread,
Aug 30, 2022, 6:55:14 AM8/30/22
to vim...@googlegroups.com

Patch 9.0.0326
Problem: Some changes for cmdheight=0 are not needed.
Solution: Revert resize behavior if height is greater than the available
space. (Shougo Matsushita, closes #11008)
Files: src/window.c


*** ../vim-9.0.0325/src/window.c 2022-08-28 19:16:11.976716179 +0100
--- src/window.c 2022-08-30 11:45:36.267824833 +0100
***************
*** 5694,5703 ****
// topframe: can only change the command line height
if (height > ROWS_AVAIL)
// If height is greater than the available space, try to create
! // space for the frame by reducing 'cmdheight' if possible, while
! // making sure `cmdheight` doesn't go below 1.
! height = MIN((p_ch > 0 ? ROWS_AVAIL + (p_ch - 1)
! : ROWS_AVAIL), height);
if (height > 0)
frame_new_height(curfrp, height, FALSE, FALSE);
}
--- 5694,5701 ----
// topframe: can only change the command line height
if (height > ROWS_AVAIL)
// If height is greater than the available space, try to create
! // space for the frame by reducing 'cmdheight' if possible.
! height = ROWS_AVAIL;
if (height > 0)
frame_new_height(curfrp, height, FALSE, FALSE);
}
*** ../vim-9.0.0325/src/version.c 2022-08-29 23:01:42.053954524 +0100
--- src/version.c 2022-08-30 11:51:07.212131440 +0100
***************
*** 709,710 ****
--- 709,712 ----
{ /* Add new patch number below this line */
+ /**/
+ 326,
/**/

--
Computers make very fast, very accurate, mistakes.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages