]> granicus.if.org Git - vim/commitdiff
updated for version 7.4.221 v7.4.221
authorBram Moolenaar <Bram@vim.org>
Thu, 27 Mar 2014 16:02:27 +0000 (17:02 +0100)
committerBram Moolenaar <Bram@vim.org>
Thu, 27 Mar 2014 16:02:27 +0000 (17:02 +0100)
Problem:    Quickfix doesn't resize on ":copen 20". (issue 199)
Solution:   Resize the window when requested. (Christian Brabandt)

src/quickfix.c
src/version.c

index 4b216adf75b098683149b3830157bb1a5e66f6de..799421e7ffed7bc1be16db85f6cb2013d912fcd1 100644 (file)
@@ -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);
index 224646513c10eec3a399cfc1a22404722b5e19b5..2c64b2b332f326d92920e79dce47f8d67245fd91 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    221,
 /**/
     220,
 /**/