forked from aniani/vim
patch 8.2.4333: cstack not always passed to where it is needed
Problem: cstack not always passed to where it is needed. Solution: Pass ctack through functions.
This commit is contained in:
@@ -256,7 +256,7 @@ compile_load_scriptvar(
|
||||
if (!SCRIPT_ID_VALID(current_sctx.sc_sid))
|
||||
return FAIL;
|
||||
si = SCRIPT_ITEM(current_sctx.sc_sid);
|
||||
idx = get_script_item_idx(current_sctx.sc_sid, name, 0, cctx);
|
||||
idx = get_script_item_idx(current_sctx.sc_sid, name, 0, cctx, NULL);
|
||||
if (idx >= 0)
|
||||
{
|
||||
svar_T *sv = ((svar_T *)si->sn_var_vals.ga_data) + idx;
|
||||
@@ -316,7 +316,7 @@ compile_load_scriptvar(
|
||||
else
|
||||
{
|
||||
idx = find_exported(import->imp_sid, exp_name, &ufunc, &type,
|
||||
cctx, TRUE);
|
||||
cctx, NULL, TRUE);
|
||||
}
|
||||
*p = cc;
|
||||
*end = p;
|
||||
|
Reference in New Issue
Block a user