forked from aniani/vim
patch 8.2.4361: Vim9: some tests fail
Problem: Vim9: some tests fail. Solution: Fix the tests, mostly by removing "s:".
This commit is contained in:
@@ -684,10 +684,10 @@ func Test_opfunc_callback()
|
||||
bw!
|
||||
|
||||
# Test for using a script-local function name
|
||||
def s:LocalOpFunc(type: string): void
|
||||
def LocalOpFunc(type: string): void
|
||||
g:LocalOpFuncArgs = [type]
|
||||
enddef
|
||||
&opfunc = s:LocalOpFunc
|
||||
&opfunc = LocalOpFunc
|
||||
g:LocalOpFuncArgs = []
|
||||
normal! g@l
|
||||
assert_equal(['char'], g:LocalOpFuncArgs)
|
||||
|
||||
Reference in New Issue
Block a user