1
0
forked from aniani/vim

patch 8.2.2595: setting 'winminheight' may cause 'lines' to change

Problem:    Setting 'winminheight' may cause 'lines' to change.
Solution:   Also take minimal height of other tabpages into account. (#7899)
This commit is contained in:
Bram Moolenaar
2021-03-13 14:29:05 +01:00
parent 0756f757ed
commit 9e813b3dea
3 changed files with 25 additions and 2 deletions

View File

@@ -5860,8 +5860,8 @@ win_setminheight(void)
// loop until there is a 'winminheight' that is possible
while (p_wmh > 0)
{
room = Rows - p_ch - tabline_height();
needed = frame_minheight(topframe, NULL);
room = Rows - p_ch;
needed = min_rows() - 1; // 1 was added for the cmdline
if (room >= needed)
break;
--p_wmh;