mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.3.725
Problem: :aboveleft and :belowright have no effect on :copen. Solution: Check for cmdmod.split. (Christian Brabandt)
This commit is contained in:
@@ -2347,8 +2347,10 @@ ex_copen(eap)
|
|||||||
/* The current window becomes the previous window afterwards. */
|
/* The current window becomes the previous window afterwards. */
|
||||||
win = curwin;
|
win = curwin;
|
||||||
|
|
||||||
if (eap->cmdidx == CMD_copen || eap->cmdidx == CMD_cwindow)
|
if ((eap->cmdidx == CMD_copen || eap->cmdidx == CMD_cwindow)
|
||||||
/* Create the new window at the very bottom. */
|
&& cmdmod.split == 0)
|
||||||
|
/* Create the new window at the very bottom, except when
|
||||||
|
* :belowright or :aboveleft is used. */
|
||||||
win_goto(lastwin);
|
win_goto(lastwin);
|
||||||
if (win_split(height, WSP_BELOW | WSP_NEWLOC) == FAIL)
|
if (win_split(height, WSP_BELOW | WSP_NEWLOC) == FAIL)
|
||||||
return; /* not enough room for window */
|
return; /* not enough room for window */
|
||||||
|
@@ -725,6 +725,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
725,
|
||||||
/**/
|
/**/
|
||||||
724,
|
724,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user