changeset 6506:a5a6f1467b1e v7.4.580

updated for version 7.4.580 Problem: ":52wincmd v" still gives an invalid range error. (Charles Campbell) Solution: Skip over white space.
author Bram Moolenaar <bram@vim.org>
date Wed, 14 Jan 2015 21:22:01 +0100
parents 198e1e498edf
children 2bf1d3dc0467
files src/ex_docmd.c src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -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
     }
 
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    580,
+/**/
     579,
 /**/
     578,