forked from aniani/vim
updated for version 7.3.217
Problem: Inside an "if" a ":wincmd" causes problems. Solution: When skipping commands let ":wincmd" skip over its argument.
This commit is contained in:
@@ -2595,6 +2595,7 @@ do_one_cmd(cmdlinep, sourcing,
|
|||||||
case CMD_unlet:
|
case CMD_unlet:
|
||||||
case CMD_verbose:
|
case CMD_verbose:
|
||||||
case CMD_vertical:
|
case CMD_vertical:
|
||||||
|
case CMD_wincmd:
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: goto doend;
|
default: goto doend;
|
||||||
@@ -8237,7 +8238,7 @@ ex_wincmd(eap)
|
|||||||
p = skipwhite(p);
|
p = skipwhite(p);
|
||||||
if (*p != NUL && *p != '"' && eap->nextcmd == NULL)
|
if (*p != NUL && *p != '"' && eap->nextcmd == NULL)
|
||||||
EMSG(_(e_invarg));
|
EMSG(_(e_invarg));
|
||||||
else
|
else if (!eap->skip)
|
||||||
{
|
{
|
||||||
/* Pass flags on for ":vertical wincmd ]". */
|
/* Pass flags on for ":vertical wincmd ]". */
|
||||||
postponed_split_flags = cmdmod.split;
|
postponed_split_flags = cmdmod.split;
|
||||||
|
@@ -709,6 +709,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 */
|
||||||
|
/**/
|
||||||
|
217,
|
||||||
/**/
|
/**/
|
||||||
216,
|
216,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user