patch 8.2.1500: Vim9: error when using address without a command
Problem: Vim9: error when using address without a command.
Solution: Execute the range itself. (closes #6747)
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim
index d442dc2..e8f0706 100644
--- a/src/testdir/test_vim9_script.vim
+++ b/src/testdir/test_vim9_script.vim
@@ -10,6 +10,13 @@
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'