1
0
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:
Bram Moolenaar
2011-06-13 01:19:56 +02:00
parent 986a0039cb
commit 12bde494a5
2 changed files with 4 additions and 1 deletions

View File

@@ -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;

View File

@@ -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,
/**/ /**/