summaryrefslogtreecommitdiff
path: root/src/userfunc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-28 17:19:07 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-28 17:19:07 +0200
commitee8580e52e767916e2a95e8ac0732fd8a5ae0651 (patch)
tree7969a3073d33cf09cfce17fc3b500cad1b6a694d /src/userfunc.c
parent6a950581da52b410a74531044aae8f1f8f38a7df (diff)
downloadvim-git-ee8580e52e767916e2a95e8ac0732fd8a5ae0651.tar.gz
patch 8.2.1534: Vim9: type error for argument type is not at call positionv8.2.1534
Problem: Vim9: type error for argument type is not at call position. Solution: Set the context and stack after checking the arguments. (issue #6785)
Diffstat (limited to 'src/userfunc.c')
-rw-r--r--src/userfunc.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/userfunc.c b/src/userfunc.c
index f3c04b28a..be706bdbb 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -1314,17 +1314,10 @@ call_user_func(
if (fp->uf_def_status != UF_NOT_COMPILED)
{
- estack_push_ufunc(fp, 1);
- save_current_sctx = current_sctx;
- current_sctx = fp->uf_script_ctx;
-
// Execute the function, possibly compiling it first.
call_def_function(fp, argcount, argvars, funcexe->partial, rettv);
--depth;
current_funccal = fc->caller;
-
- estack_pop();
- current_sctx = save_current_sctx;
free_funccal(fc);
return;
}