0
0
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:
Bram Moolenaar
2022-01-30 15:28:30 +00:00
parent 06011e1a55
commit 848faddb87
16 changed files with 102 additions and 54 deletions

View File

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