mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.0326: some changes for cmdheight=0 are not needed
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)
This commit is contained in:
committed by
Bram Moolenaar
parent
816736bcc7
commit
0e412be00f
@@ -707,6 +707,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
326,
|
||||||
/**/
|
/**/
|
||||||
325,
|
325,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -5694,10 +5694,8 @@ frame_setheight(frame_T *curfrp, int height)
|
|||||||
// topframe: can only change the command line height
|
// topframe: can only change the command line height
|
||||||
if (height > ROWS_AVAIL)
|
if (height > ROWS_AVAIL)
|
||||||
// If height is greater than the available space, try to create
|
// If height is greater than the available space, try to create
|
||||||
// space for the frame by reducing 'cmdheight' if possible, while
|
// space for the frame by reducing 'cmdheight' if possible.
|
||||||
// making sure `cmdheight` doesn't go below 1.
|
height = ROWS_AVAIL;
|
||||||
height = MIN((p_ch > 0 ? ROWS_AVAIL + (p_ch - 1)
|
|
||||||
: ROWS_AVAIL), height);
|
|
||||||
if (height > 0)
|
if (height > 0)
|
||||||
frame_new_height(curfrp, height, FALSE, FALSE);
|
frame_new_height(curfrp, height, FALSE, FALSE);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user