1
0
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:
Bram Moolenaar
2022-02-12 20:34:50 +00:00
parent a749a42ed2
commit 62b191c387
6 changed files with 15 additions and 12 deletions

View File

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