mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -04:00
patch 8.2.4260: Vim9: can still use a global function without g:
Problem: Vim9: can still use a global function without g: at the script
level.
Solution: Also check for g: at the script level. (issue #9637)
This commit is contained in:
@@ -1324,7 +1324,7 @@ def Test_gdefault_not_used()
|
||||
bwipe!
|
||||
enddef
|
||||
|
||||
def g:SomeComplFunc(findstart: number, base: string): any
|
||||
def s:SomeComplFunc(findstart: number, base: string): any
|
||||
if findstart
|
||||
return 0
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user