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:
@@ -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'
|
||||
|
Reference in New Issue
Block a user