summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index 4b216adf7..799421e7f 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -2358,7 +2358,22 @@ ex_copen(eap)
win = qf_find_win(qi);
if (win != NULL && cmdmod.tab == 0)
+ {
win_goto(win);
+ if (eap->addr_count != 0)
+ {
+#ifdef FEAT_VERTSPLIT
+ if (cmdmod.split & WSP_VERT)
+ {
+ if (height != W_WIDTH(win))
+ win_setwidth(height);
+ }
+ else
+#endif
+ if (height != win->w_height)
+ win_setheight(height);
+ }
+ }
else
{
qf_buf = qf_find_buf(qi);