forked from aniani/vim
patch 8.2.4176: Vim9: cannot use imported function with call()
Problem: Vim9: cannot use imported function with call(). Solution: Translate the function name. (closes #9590)
This commit is contained in:
@@ -706,7 +706,7 @@ def Test_use_autoload_import_in_fold_expression()
|
||||
edit! otherfile
|
||||
redraw
|
||||
|
||||
set foldexpr= foldmethod&
|
||||
set foldexpr= foldmethod& debug=
|
||||
bwipe!
|
||||
delete('Xdir', 'rf')
|
||||
&rtp = save_rtp
|
||||
@@ -1525,6 +1525,8 @@ def Test_vim9script_autoload_call()
|
||||
|
||||
call another.Getother()
|
||||
assert_equal('other', g:result)
|
||||
|
||||
assert_equal('arg', call('another.RetArg', ['arg']))
|
||||
END
|
||||
CheckScriptSuccess(lines)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user