]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.4.580 v7.4.580
authorBram Moolenaar <Bram@vim.org>
Wed, 14 Jan 2015 20:22:01 +0000 (21:22 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 14 Jan 2015 20:22:01 +0000 (21:22 +0100)
Problem:    ":52wincmd v" still gives an invalid range error. (Charles
            Campbell)
Solution:   Skip over white space.

src/ex_docmd.c
src/version.c

index 3edc1a2247f51a19bf99b0717716494e5d0340fa..a59bbd1bbd3e5fd8f451343a130d6cabad3e5a2a 100644 (file)
@@ -2140,8 +2140,8 @@ do_one_cmd(cmdlinep, sourcing,
 
 #ifdef FEAT_WINDOWS
        /* :wincmd range depends on the argument. */
-       if (ea.cmdidx == CMD_wincmd)
-           get_wincmd_addr_type(p, &ea);
+       if (ea.cmdidx == CMD_wincmd && p != NULL)
+           get_wincmd_addr_type(skipwhite(p), &ea);
 #endif
     }
 
index e6ab37e5a1dea3d8d02fe17a9c05df34d59faed2..cdde7ca52868d0605c1e70aed0eeb9dd8c9d4de4 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    580,
 /**/
     579,
 /**/