summaryrefslogtreecommitdiff
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-06-13 01:19:56 +0200
committerBram Moolenaar <Bram@vim.org>2011-06-13 01:19:56 +0200
commit12bde494a5493fecc0617d7225d528114b6ecbfd (patch)
tree001ccf00abde942fa5b82aa85ef23048c0fcd7e2 /src/ex_docmd.c
parent986a0039cb159446796d2e56546649465c34cbfc (diff)
downloadvim-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.c3
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;