diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-08-20 23:04:06 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-08-20 23:04:06 +0200 |
commit | 5d72ce69c8783fd8f1a0355c00806c5084010eec (patch) | |
tree | 557400c15d37c232cf6c4c8ff9be56775208df96 /src/testdir/test_vim9_script.vim | |
parent | ec65d77fa26cc87f7ce54a5a941a799e3a667c50 (diff) |
patch 8.2.1500: Vim9: error when using address without a commandv8.2.1500
Problem: Vim9: error when using address without a command.
Solution: Execute the range itself. (closes #6747)
Diffstat (limited to 'src/testdir/test_vim9_script.vim')
-rw-r--r-- | src/testdir/test_vim9_script.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim index d442dc2548..e8f07069c2 100644 --- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -10,6 +10,13 @@ def Test_syntax() let other: list<string> = ['asdf'] enddef +def Test_range_only() + new + setline(1, ['blah', 'Blah']) + :/Blah/ + assert_equal(2, getcurpos()[1]) +enddef + let s:appendToMe = 'xxx' let s:addToMe = 111 let g:existing = 'yes' |