diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-03-27 17:02:27 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-03-27 17:02:27 +0100 |
commit | 158864120d3ee8baa2b5c9c2cb15bd5c5ea5731b (patch) | |
tree | 9c27107d16f4ef8282cffd7871ffe86daa233525 | |
parent | c666b5b467df3a3c5c7755bf1cb45724879709c9 (diff) | |
download | vim-158864120d3ee8baa2b5c9c2cb15bd5c5ea5731b.zip |
updated for version 7.4.221
Problem: Quickfix doesn't resize on ":copen 20". (issue 199)
Solution: Resize the window when requested. (Christian Brabandt)
-rw-r--r-- | src/quickfix.c | 15 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 17 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); diff --git a/src/version.c b/src/version.c index 224646513..2c64b2b33 100644 --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 221, +/**/ 220, /**/ 219, |