Mercurial > vim
changeset 2887:15705b520c29 v7.3.217
updated for version 7.3.217
Problem: Inside an "if" a ":wincmd" causes problems.
Solution: When skipping commands let ":wincmd" skip over its argument.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 13 Jun 2011 01:19:56 +0200 |
parents | 0c9ba5594d9a |
children | 2763fe7844f6 |
files | src/ex_docmd.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;