diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-25 20:12:11 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-25 20:12:11 +0100 |
commit | 47a2abf0bc3c3dac0433754ad0365ebad152df8c (patch) | |
tree | f8062b3e3006cb009b8b578fe0769e7992829283 /src/testdir/test_vim9_cmd.vim | |
parent | 34c54eb6cbda5dbc14376c8b1c62ad11d4852793 (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/testdir/test_vim9_cmd.vim')
-rw-r--r-- | src/testdir/test_vim9_cmd.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim index 97110ce527..d0f9872caa 100644 --- a/src/testdir/test_vim9_cmd.vim +++ b/src/testdir/test_vim9_cmd.vim @@ -648,5 +648,17 @@ def Test_star_command() CheckScriptSuccess(lines) enddef +def Test_cmd_argument_without_colon() + new Xfile + setline(1, ['a', 'b', 'c', 'd']) + write + edit +3 % + assert_equal(3, getcurpos()[1]) + edit +/a % + assert_equal(1, getcurpos()[1]) + bwipe + delete('Xfile') +enddef + " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker |