patch 8.2.0771: Vim9: cannot call a compiled closure from not compiled code
Problem: Vim9: cannot call a compiled closure from not compiled code.
Solution: Pass funcexe to call_user_func().
diff --git a/src/eval.c b/src/eval.c
index 77359dc..dbc10c1 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -246,7 +246,8 @@
if (partial->pt_func != NULL && partial->pt_func->uf_dfunc_idx >= 0)
{
- if (call_def_function(partial->pt_func, argc, argv, rettv) == FAIL)
+ if (call_def_function(partial->pt_func, argc, argv,
+ partial, rettv) == FAIL)
return FAIL;
}
else