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_verbose:
case CMD_vertical:
case CMD_wincmd:
break;
default: goto doend;
@@ -8237,7 +8238,7 @@ ex_wincmd(eap)
p = skipwhite(p);
if (*p != NUL && *p != '"' && eap->nextcmd == NULL)
EMSG(_(e_invarg));
else
else if (!eap->skip)
{
/* Pass flags on for ":vertical wincmd ]". */
postponed_split_flags = cmdmod.split;