aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2014-04-14 01:03:18 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-16 09:31:25 -0300
commita129ab20e736dd5ec33156a713c325e825547cbb (patch)
tree2c976d87a39784e2e853b54d7a55305bccc2266e /src
parentf54c050cf3389a6e646bd0e6cd80476c01cd752c (diff)
downloadrneovim-a129ab20e736dd5ec33156a713c325e825547cbb.tar.gz
rneovim-a129ab20e736dd5ec33156a713c325e825547cbb.tar.bz2
rneovim-a129ab20e736dd5ec33156a713c325e825547cbb.zip
vim-patch:7.4.221
Problem: Quickfix doesn't resize on ":copen 20". Solution: Resize the window when requested. (Christian Brabandt) https://code.google.com/p/vim/source/detail?r=a548aae15b3a27a56d814900049785c29c01a37a
Diffstat (limited to 'src')
-rw-r--r--src/quickfix.c15
-rw-r--r--src/version.c2
2 files changed, 14 insertions, 3 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index 3dba30389d..875f72c726 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -2093,9 +2093,20 @@ void ex_copen(exarg_T *eap)
*/
win = qf_find_win(qi);
- if (win != NULL && cmdmod.tab == 0)
+ if (win != NULL && cmdmod.tab == 0) {
win_goto(win);
- else {
+ if (eap->addr_count != 0) {
+ if (cmdmod.split & WSP_VERT) {
+ if (height != W_WIDTH(win)) {
+ win_setwidth(height);
+ }
+ } else {
+ if (height != win->w_height) {
+ win_setheight(height);
+ }
+ }
+ }
+ } else {
qf_buf = qf_find_buf(qi);
/* The current window becomes the previous window afterwards. */
diff --git a/src/version.c b/src/version.c
index a9d8e3f753..6dfc371f4a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -240,7 +240,7 @@ static int included_patches[] = {
//224,
//223,
//222,
- //221,
+ 221,
//220,
219,
218,