diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-06-13 01:19:56 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-06-13 01:19:56 +0200 |
commit | 12bde494a5493fecc0617d7225d528114b6ecbfd (patch) | |
tree | 001ccf00abde942fa5b82aa85ef23048c0fcd7e2 /src/ex_docmd.c | |
parent | 986a0039cb159446796d2e56546649465c34cbfc (diff) | |
download | vim-12bde494a5493fecc0617d7225d528114b6ecbfd.zip |
updated for version 7.3.217
Problem: Inside an "if" a ":wincmd" causes problems.
Solution: When skipping commands let ":wincmd" skip over its argument.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index b9ec6c530..602bbfab4 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -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; |