]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.217 v7.3.217
authorBram Moolenaar <Bram@vim.org>
Sun, 12 Jun 2011 23:19:56 +0000 (01:19 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 12 Jun 2011 23:19:56 +0000 (01:19 +0200)
Problem:    Inside an "if" a ":wincmd" causes problems.
Solution:   When skipping commands let ":wincmd" skip over its argument.

src/ex_docmd.c
src/version.c

index b9ec6c53062468cffb69c57e0ff57e2116f3d659..602bbfab457bf04d4ba09fe8735a351ebe5f670c 100644 (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;
index 923380a492dfa5a18f1d798d8ca0d1bad262e595..f37599b76fa598e0740d4cd586c5e9053bc62798 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    217,
 /**/
     216,
 /**/