patch 8.2.1329: Vim9: cannot define global function inside :def function
Problem: Vim9: cannot define global function inside :def function.
Solution: Assign to global variable instead of local. (closes #6584)
diff --git a/src/structs.h b/src/structs.h
index ba9c98d..7e34d80 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -1546,6 +1546,7 @@
/*
* Structure to hold info for a user function.
+ * When adding a field check copy_func().
*/
typedef struct
{
@@ -1618,6 +1619,7 @@
#define FC_NOARGS 0x200 // no a: variables in lambda
#define FC_VIM9 0x400 // defined in vim9 script file
#define FC_CFUNC 0x800 // defined as Lua C func
+#define FC_COPY 0x1000 // copy of another function by copy_func()
#define MAX_FUNC_ARGS 20 // maximum number of function arguments
#define VAR_SHORT_LEN 20 // short variable name length