diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-01-16 09:27:08 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2025-01-16 11:17:14 +0800 |
commit | f8680d009741d01e137aeb2232aa7e033cd70d7b (patch) | |
tree | 38a864a0005e055eb4f4a40809b0dda85d83cecc /test/old | |
parent | 718e16536052c0e75de61a32ef237a9e87fc03f2 (diff) | |
download | rneovim-f8680d009741d01e137aeb2232aa7e033cd70d7b.tar.gz rneovim-f8680d009741d01e137aeb2232aa7e033cd70d7b.tar.bz2 rneovim-f8680d009741d01e137aeb2232aa7e033cd70d7b.zip |
vim-patch:9.1.1013: Vim9: Regression caused by patch v9.1.0646
Problem: Vim9: Regression caused by patch v9.1.0646
Solution: Translate the function name before invoking it in call()
(Yegappan Lakshmanan)
fixes: vim/vim#16430
closes: vim/vim#16445
https://github.com/vim/vim/commit/6289f9159102e0855bedc566636b5e7ca6ced72c
N/A patch:
vim-patch:8.2.4176: Vim9: cannot use imported function with call()
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'test/old')
-rw-r--r-- | test/old/testdir/test_user_func.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/old/testdir/test_user_func.vim b/test/old/testdir/test_user_func.vim index 3c24412eb7..b509b03778 100644 --- a/test/old/testdir/test_user_func.vim +++ b/test/old/testdir/test_user_func.vim @@ -380,7 +380,7 @@ func Test_script_local_func() " Try to call a script local function in global scope let lines =<< trim [CODE] :call assert_fails('call s:Xfunc()', 'E81:') - :call assert_fails('let x = call("<SID>Xfunc", [])', 'E120:') + :call assert_fails('let x = call("<SID>Xfunc", [])', ['E81:', 'E117:']) :call writefile(v:errors, 'Xresult') :qall |