summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-16 14:51:39 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-16 14:51:39 +0200
commit1142a31b8c44c4e7dbf28a83ae52995113b37917 (patch)
treeec74e12a71816acfceab658696ce4bb12484ff79 /src/quickfix.c
parent3439028c8909aaa71ffe612a7191babdfe07c04c (diff)
downloadvim-git-1142a31b8c44c4e7dbf28a83ae52995113b37917.tar.gz
patch 8.1.2154: quickfix window height wrong when there is a tablinev8.1.2154
Problem: Quickfix window height wrong when there is a tabline. (Daniel Hahler) Solution: Take the tabline height into account. (closes #5058)
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index 136c472e1..36456ed4f 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -4046,8 +4046,8 @@ qf_goto_cwindow(qf_info_T *qi, int resize, int sz, int vertsplit)
if (sz != win->w_width)
win_setwidth(sz);
}
- else if (sz != win->w_height
- && win->w_height + win->w_status_height < cmdline_row)
+ else if (sz != win->w_height && win->w_height
+ + win->w_status_height + tabline_height() < cmdline_row)
win_setheight(sz);
}