mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 09:26:30 +00: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:
@@ -821,17 +821,12 @@ void call_user_func(ufunc_T *fp, int argcount, typval_T *argvars,
|
|||||||
current_funccal = fc;
|
current_funccal = fc;
|
||||||
fc->func = fp;
|
fc->func = fp;
|
||||||
fc->rettv = rettv;
|
fc->rettv = rettv;
|
||||||
rettv->vval.v_number = 0;
|
|
||||||
fc->linenr = 0;
|
|
||||||
fc->returned = FALSE;
|
|
||||||
fc->level = ex_nesting_level;
|
fc->level = ex_nesting_level;
|
||||||
// Check if this function has a breakpoint.
|
// Check if this function has a breakpoint.
|
||||||
fc->breakpoint = dbg_find_breakpoint(false, fp->uf_name, (linenr_T)0);
|
fc->breakpoint = dbg_find_breakpoint(false, fp->uf_name, (linenr_T)0);
|
||||||
fc->dbg_tick = debug_tick;
|
fc->dbg_tick = debug_tick;
|
||||||
|
|
||||||
// Set up fields for closure.
|
// Set up fields for closure.
|
||||||
fc->fc_refcount = 0;
|
|
||||||
fc->fc_copyID = 0;
|
|
||||||
ga_init(&fc->fc_funcs, sizeof(ufunc_T *), 1);
|
ga_init(&fc->fc_funcs, sizeof(ufunc_T *), 1);
|
||||||
func_ptr_ref(fp);
|
func_ptr_ref(fp);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user