patch 9.0.0630: in Vim9 script a numbered function cannot be called
Problem: In Vim9 script a numbered function cannot be called.
Solution: Do not require "g:" before a numbered function name.
(closes #11254)
diff --git a/src/userfunc.c b/src/userfunc.c
index 0f194d5..92b5203 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -2095,7 +2095,8 @@
{
return ufunc->uf_name[0] != K_SPECIAL
&& (ufunc->uf_flags & FC_LAMBDA) == 0
- && vim_strchr(ufunc->uf_name, AUTOLOAD_CHAR) == NULL;
+ && vim_strchr(ufunc->uf_name, AUTOLOAD_CHAR) == NULL
+ && !isdigit(ufunc->uf_name[0]);
}
/*