diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-03-01 21:02:46 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-03-01 21:02:46 +0100 |
commit | 39d4cab494248131b6fb07aba633aa4da7871a57 (patch) | |
tree | 0055d60e596a2de1c3fa1ddd57ae231848fce167 /src/window.c | |
parent | 3650fd709807d5ac182e28d952cbd790c1ad0a6a (diff) | |
download | vim-git-39d4cab494248131b6fb07aba633aa4da7871a57.tar.gz |
patch 8.2.2560: setting 'winminheigt' does not take tabline into accountv8.2.2560
Problem: Setting 'winminheigt' does not take tabline into account.
Solution: Subtract the tabline from the available height. (closes #7899)
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index 58a216daf..a810a6af2 100644 --- a/src/window.c +++ b/src/window.c @@ -5860,7 +5860,7 @@ win_setminheight(void) // loop until there is a 'winminheight' that is possible while (p_wmh > 0) { - room = Rows - p_ch; + room = Rows - p_ch - tabline_height(); needed = frame_minheight(topframe, NULL); if (room >= needed) break; |