summaryrefslogtreecommitdiff
path: root/src/proto/userfunc.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-22 17:35:54 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-22 17:35:54 +0100
commitcd45ed03bfdd7fac53d562ad402df74bd26e7754 (patch)
tree08509cca8dd5a9615671f1d0f3fc50fa0b4f5ef0 /src/proto/userfunc.pro
parent07761a3b965ec3be0c8d52aae9b6dc09c2127d27 (diff)
downloadvim-git-cd45ed03bfdd7fac53d562ad402df74bd26e7754.tar.gz
patch 8.2.2188: Vim9: crash when calling global function from :def functionv8.2.2188
Problem: Vim9: crash when calling global function from :def function. Solution: Set the outer context. Define the partial for the context on the original function. Use a refcount to keep track of which ufunc is using a dfunc. (closes #7525)
Diffstat (limited to 'src/proto/userfunc.pro')
-rw-r--r--src/proto/userfunc.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/userfunc.pro b/src/proto/userfunc.pro
index c79c101c6..da4a880dc 100644
--- a/src/proto/userfunc.pro
+++ b/src/proto/userfunc.pro
@@ -13,7 +13,7 @@ ufunc_T *find_func_even_dead(char_u *name, int is_global, cctx_T *cctx);
ufunc_T *find_func(char_u *name, int is_global, cctx_T *cctx);
int func_is_global(ufunc_T *ufunc);
int func_name_refcount(char_u *name);
-ufunc_T *copy_func(char_u *lambda, char_u *global);
+int copy_func(char_u *lambda, char_u *global, ectx_T *ectx);
int funcdepth_increment(void);
void funcdepth_decrement(void);
int funcdepth_get(void);