diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-09-26 23:16:53 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-09-30 21:00:18 -0400 |
commit | 594a69579f5d21356021650f87416e29179dbbf8 (patch) | |
tree | 94780f206cf11d8cd42862637a6a29458b82a373 /src/nvim/eval/userfunc.c | |
parent | 578b0b0b52ad036370a6678d1b66e5c61d5bd4e2 (diff) | |
download | rneovim-594a69579f5d21356021650f87416e29179dbbf8.tar.gz rneovim-594a69579f5d21356021650f87416e29179dbbf8.tar.bz2 rneovim-594a69579f5d21356021650f87416e29179dbbf8.zip |
vim-patch:8.2.0042: clearing funccal values twice
Problem: Clearing funccal values twice.
Solution: Remove clearing individual fields.
https://github.com/vim/vim/commit/eac7ce01e92f3dee6bbccaf7e88680fe2ce286eb
Diffstat (limited to 'src/nvim/eval/userfunc.c')
-rw-r--r-- | src/nvim/eval/userfunc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/nvim/eval/userfunc.c b/src/nvim/eval/userfunc.c index d6418eeb48..d6a25435fe 100644 --- a/src/nvim/eval/userfunc.c +++ b/src/nvim/eval/userfunc.c @@ -821,17 +821,12 @@ void call_user_func(ufunc_T *fp, int argcount, typval_T *argvars, current_funccal = fc; fc->func = fp; fc->rettv = rettv; - rettv->vval.v_number = 0; - fc->linenr = 0; - fc->returned = FALSE; fc->level = ex_nesting_level; // Check if this function has a breakpoint. fc->breakpoint = dbg_find_breakpoint(false, fp->uf_name, (linenr_T)0); fc->dbg_tick = debug_tick; // Set up fields for closure. - fc->fc_refcount = 0; - fc->fc_copyID = 0; ga_init(&fc->fc_funcs, sizeof(ufunc_T *), 1); func_ptr_ref(fp); |