diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-03-13 14:29:05 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-03-13 14:29:05 +0100 |
commit | 9e813b3dea94a8952b732a224fa31beba6e85973 (patch) | |
tree | b078fb32462dc67b91820745579e79cfcfd04877 /src/window.c | |
parent | 0756f757edba755b75e0c9c612ab2f7e673def84 (diff) | |
download | vim-git-9e813b3dea94a8952b732a224fa31beba6e85973.tar.gz |
patch 8.2.2595: setting 'winminheight' may cause 'lines' to changev8.2.2595
Problem: Setting 'winminheight' may cause 'lines' to change.
Solution: Also take minimal height of other tabpages into account. (#7899)
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index a810a6af2..3e32b3759 100644 --- a/src/window.c +++ b/src/window.c @@ -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; |