summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-25 20:12:11 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-25 20:12:11 +0100
commit47a2abf0bc3c3dac0433754ad0365ebad152df8c (patch)
treef8062b3e3006cb009b8b578fe0769e7992829283 /src/ex_cmds.c
parent34c54eb6cbda5dbc14376c8b1c62ad11d4852793 (diff)
patch 8.2.2052: Vim9: "edit +4 fname" gives an errorv8.2.2052
Problem: Vim9: "edit +4 fname" gives an error. (Naruhiko Nishino) Solution: Allow using a range in the +cmd argument. (closes #7364)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index aa9fe9b0a0..44d8cd8500 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3123,7 +3123,7 @@ do_ecmd(
#endif
if (command != NULL)
- do_cmdline(command, NULL, NULL, DOCMD_VERBOSE);
+ do_cmdline(command, NULL, NULL, DOCMD_VERBOSE|DOCMD_RANGEOK);
#ifdef FEAT_KEYMAP
if (curbuf->b_kmap_state & KEYMAP_INIT)