forked from aniani/vim
updated for version 7.4.450
Problem: Not all commands that edit another buffer support the +cmd argument. Solution: Add the +cmd argument to relevant commands. (Marcin Szamotulski)
This commit is contained in:
@@ -5135,6 +5135,8 @@ ex_buffer(eap)
|
||||
goto_buffer(eap, DOBUF_CURRENT, FORWARD, 0);
|
||||
else
|
||||
goto_buffer(eap, DOBUF_FIRST, FORWARD, (int)eap->line2);
|
||||
if (eap->do_ecmd_cmd != NULL)
|
||||
do_cmdline_cmd(eap->do_ecmd_cmd);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5147,6 +5149,8 @@ ex_bmodified(eap)
|
||||
exarg_T *eap;
|
||||
{
|
||||
goto_buffer(eap, DOBUF_MOD, FORWARD, (int)eap->line2);
|
||||
if (eap->do_ecmd_cmd != NULL)
|
||||
do_cmdline_cmd(eap->do_ecmd_cmd);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -5158,6 +5162,8 @@ ex_bnext(eap)
|
||||
exarg_T *eap;
|
||||
{
|
||||
goto_buffer(eap, DOBUF_CURRENT, FORWARD, (int)eap->line2);
|
||||
if (eap->do_ecmd_cmd != NULL)
|
||||
do_cmdline_cmd(eap->do_ecmd_cmd);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -5171,6 +5177,8 @@ ex_bprevious(eap)
|
||||
exarg_T *eap;
|
||||
{
|
||||
goto_buffer(eap, DOBUF_CURRENT, BACKWARD, (int)eap->line2);
|
||||
if (eap->do_ecmd_cmd != NULL)
|
||||
do_cmdline_cmd(eap->do_ecmd_cmd);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -5184,6 +5192,8 @@ ex_brewind(eap)
|
||||
exarg_T *eap;
|
||||
{
|
||||
goto_buffer(eap, DOBUF_FIRST, FORWARD, 0);
|
||||
if (eap->do_ecmd_cmd != NULL)
|
||||
do_cmdline_cmd(eap->do_ecmd_cmd);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -5195,6 +5205,8 @@ ex_blast(eap)
|
||||
exarg_T *eap;
|
||||
{
|
||||
goto_buffer(eap, DOBUF_LAST, BACKWARD, 0);
|
||||
if (eap->do_ecmd_cmd != NULL)
|
||||
do_cmdline_cmd(eap->do_ecmd_cmd);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user