aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-10-27 11:28:13 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-10-27 11:31:10 -0400
commit7c26be61bb5a405f28ae230cd3602ecb6e30a3a9 (patch)
tree0a40db51c11ef4b2e6ba916ad14724653dd5e693 /src/nvim/quickfix.c
parent479c01412242c11eab8bdbe62048b1351731bea2 (diff)
downloadrneovim-7c26be61bb5a405f28ae230cd3602ecb6e30a3a9.tar.gz
rneovim-7c26be61bb5a405f28ae230cd3602ecb6e30a3a9.tar.bz2
rneovim-7c26be61bb5a405f28ae230cd3602ecb6e30a3a9.zip
vim-patch:8.1.1245: ":copen 10" sets height in full-height window
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 vim/vim#4325) https://github.com/vim/vim/commit/36d502225c3ec5e8b30771d58ee20171ce564b2f
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index 8f891751d6..d900ea3c70 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -3164,7 +3164,8 @@ static int qf_goto_cwindow(const qf_info_T *qi, bool resize, int sz,
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);
}
}