summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <bram@vim.org>2012-11-20 17:55:10 +0100
committerBram Moolenaar <bram@vim.org>2012-11-20 17:55:10 +0100
commit6d66e5031ebabb6f70ae9668c48be57f83f64dab (patch)
tree95f4236d02742973cc2028143693b1d1a6c6d058
parentf1a4e0cfd416d2d0b8366bed2477c06ffe811d11 (diff)
downloadvim-6d66e5031ebabb6f70ae9668c48be57f83f64dab.tar.gz
updated for version 7.3.725v7.3.725v7-3-725
Problem: :aboveleft and :belowright have no effect on :copen. Solution: Check for cmdmod.split. (Christian Brabandt)
-rw-r--r--src/quickfix.c6
-rw-r--r--src/version.c2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/quickfix.c b/src/quickfix.c
index fec27fa8..85da690f 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -2347,8 +2347,10 @@ ex_copen(eap)
/* The current window becomes the previous window afterwards. */
win = curwin;
- if (eap->cmdidx == CMD_copen || eap->cmdidx == CMD_cwindow)
- /* Create the new window at the very bottom. */
+ if ((eap->cmdidx == CMD_copen || eap->cmdidx == CMD_cwindow)
+ && cmdmod.split == 0)
+ /* Create the new window at the very bottom, except when
+ * :belowright or :aboveleft is used. */
win_goto(lastwin);
if (win_split(height, WSP_BELOW | WSP_NEWLOC) == FAIL)
return; /* not enough room for window */
diff --git a/src/version.c b/src/version.c
index 8de4ac83..f8369554 100644
--- a/src/version.c
+++ b/src/version.c
@@ -726,6 +726,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 725,
+/**/
724,
/**/
723,