0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

patch 8.2.1423: Vim9: find global function when looking for script-local

Problem:    Vim9: find global function when looking for script-local.
Solution:   Don't strip prefix if name starts with "s:". (closes #6688)
This commit is contained in:
Bram Moolenaar
2020-08-11 22:30:42 +02:00
parent 097148e849
commit 035d6e91bd
3 changed files with 13 additions and 2 deletions

View File

@@ -203,6 +203,15 @@ def Test_global_local_function()
assert_equal('local', Func())
END
CheckScriptSuccess(lines)
lines =<< trim END
vim9script
def g:Funcy()
echo 'funcy'
enddef
s:Funcy()
END
CheckScriptFailure(lines, 'E117:')
enddef
func TakesOneArg(arg)