updated for version 7.4.580
Problem: ":52wincmd v" still gives an invalid range error. (Charles
Campbell)
Solution: Skip over white space.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 3edc1a2..a59bbd1 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -2140,8 +2140,8 @@
#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
}