comparison src/window.c @ 24037:b5a6de6a8915 v8.2.2560

patch 8.2.2560: setting 'winminheigt' does not take tabline into account Commit: https://github.com/vim/vim/commit/39d4cab494248131b6fb07aba633aa4da7871a57 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 1 21:02:46 2021 +0100 patch 8.2.2560: setting 'winminheigt' does not take tabline into account Problem: Setting 'winminheigt' does not take tabline into account. Solution: Subtract the tabline from the available height. (closes https://github.com/vim/vim/issues/7899)
author Bram Moolenaar <Bram@vim.org>
date Mon, 01 Mar 2021 21:15:03 +0100
parents 5a4f9c5c1b99
children 0a5eba7e6660
comparison
equal deleted inserted replaced
24036:cb3227f4d7a8 24037:b5a6de6a8915
5858 int first = TRUE; 5858 int first = TRUE;
5859 5859
5860 // loop until there is a 'winminheight' that is possible 5860 // loop until there is a 'winminheight' that is possible
5861 while (p_wmh > 0) 5861 while (p_wmh > 0)
5862 { 5862 {
5863 room = Rows - p_ch; 5863 room = Rows - p_ch - tabline_height();
5864 needed = frame_minheight(topframe, NULL); 5864 needed = frame_minheight(topframe, NULL);
5865 if (room >= needed) 5865 if (room >= needed)
5866 break; 5866 break;
5867 --p_wmh; 5867 --p_wmh;
5868 if (first) 5868 if (first)