summaryrefslogtreecommitdiffstats
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-02 20:17:40 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-02 20:17:40 +0200
commit36d502225c3ec5e8b30771d58ee20171ce564b2f (patch)
tree60c386bb96f1c88b50cdeea1858a8cdf65106c0e /src/quickfix.c
parent1ee36d6ff5bc51a1ecb5631c3e5bb632b5d1bcfc (diff)
patch 8.1.1245: ":copen 10" sets height in full-height windowv8.1.1245
Problem: ":copen 10" sets height in full-height window. (Daniel Hahler) Solution: Don't set the height if the quickfix window is full height. (closes #4325)
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index cbef377c90..f909343879 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -4016,7 +4016,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)
+ else if (sz != win->w_height
+ && win->w_height + win->w_status_height < cmdline_row)
win_setheight(sz);
}