From 12bde494a5493fecc0617d7225d528114b6ecbfd Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 13 Jun 2011 01:19:56 +0200 Subject: updated for version 7.3.217 Problem: Inside an "if" a ":wincmd" causes problems. Solution: When skipping commands let ":wincmd" skip over its argument. --- src/ex_docmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ex_docmd.c') 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; -- cgit v1.2.3