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 #4325)
diff --git a/src/quickfix.c b/src/quickfix.c
index cbef377..f909343 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -4016,7 +4016,8 @@
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);
}