diff src/window.c @ 24108:0a5eba7e6660 v8.2.2595

patch 8.2.2595: setting 'winminheight' may cause 'lines' to change Commit: https://github.com/vim/vim/commit/9e813b3dea94a8952b732a224fa31beba6e85973 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 13 14:29:05 2021 +0100 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. (https://github.com/vim/vim/issues/7899)
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Mar 2021 14:30:03 +0100
parents b5a6de6a8915
children 77cb22562852
line wrap: on
line diff
--- 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;