0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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)
This commit is contained in:
Bram Moolenaar
2020-08-20 23:04:06 +02:00
parent ec65d77fa2
commit 5d72ce69c8
3 changed files with 25 additions and 3 deletions

View File

@@ -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'