diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-31 22:05:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-31 22:05:04 +0200 |
commit | 38ddf333f6b2806b0ea2dd052ee1cd50dd7f4525 (patch) | |
tree | 5174c1e94e06de25435c40113f6d793eb97659c7 /src/proto/userfunc.pro | |
parent | 4d4d1cd5c8b61ef0296bd6190ca2a0b2d6d96ba7 (diff) | |
download | vim-git-38ddf333f6b2806b0ea2dd052ee1cd50dd7f4525.tar.gz |
patch 8.2.1329: Vim9: cannot define global function inside :def functionv8.2.1329
Problem: Vim9: cannot define global function inside :def function.
Solution: Assign to global variable instead of local. (closes #6584)
Diffstat (limited to 'src/proto/userfunc.pro')
-rw-r--r-- | src/proto/userfunc.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/userfunc.pro b/src/proto/userfunc.pro index 9c9eb2df7..f30ac2f21 100644 --- a/src/proto/userfunc.pro +++ b/src/proto/userfunc.pro @@ -5,6 +5,7 @@ int get_function_args(char_u **argp, char_u endchar, garray_T *newargs, garray_T char_u *get_lambda_name(void); char_u *register_cfunc(cfunc_T cb, cfunc_free_T cb_free, void *state); int get_lambda_tv(char_u **arg, typval_T *rettv, evalarg_T *evalarg); +void copy_func(char_u *lambda, char_u *global); char_u *deref_func_name(char_u *name, int *lenp, partial_T **partialp, int no_autoload); void emsg_funcname(char *ermsg, char_u *name); int get_func_tv(char_u *name, int len, typval_T *rettv, char_u **arg, evalarg_T *evalarg, funcexe_T *funcexe); |