mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
vim-patch:8.2.0042: clearing funccal values twice
Problem: Clearing funccal values twice.
Solution: Remove clearing individual fields.
eac7ce01e9
This commit is contained in:
parent
578b0b0b52
commit
594a69579f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user