Mercurial > vim
changeset 3939:f4aa43d952f5 v7.3.725
updated for version 7.3.725
Problem: :aboveleft and :belowright have no effect on :copen.
Solution: Check for cmdmod.split. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 20 Nov 2012 17:55:10 +0100 |
parents | abf6c04625af |
children | b1b18442cf4b |
files | src/quickfix.c src/version.c |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 */