diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-01-14 21:22:01 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-01-14 21:22:01 +0100 |
commit | 164f3269b13080ab39495440d614efa29bd81fe5 (patch) | |
tree | dfb919fb2e5cd88cc127baf656aa29e03a8220ab /src/ex_docmd.c | |
parent | 83caecf31437c1e1af342186514f2a073ee1427e (diff) |
updated for version 7.4.580v7.4.580
Problem: ":52wincmd v" still gives an invalid range error. (Charles
Campbell)
Solution: Skip over white space.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 3edc1a2247..a59bbd1bbd 100644 --- 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 } |