mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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:
@@ -649,6 +649,7 @@ ex_import(exarg_T *eap)
|
||||
|
||||
/*
|
||||
* Find an exported item in "sid" matching "name".
|
||||
* Either "cctx" or "cstack" is NULL.
|
||||
* When it is a variable return the index.
|
||||
* When it is a user function return "*ufunc".
|
||||
* When not found returns -1 and "*ufunc" is NULL.
|
||||
@@ -660,6 +661,7 @@ find_exported(
|
||||
ufunc_T **ufunc,
|
||||
type_T **type,
|
||||
cctx_T *cctx,
|
||||
cstack_T *cstack,
|
||||
int verbose)
|
||||
{
|
||||
int idx = -1;
|
||||
@@ -667,7 +669,7 @@ find_exported(
|
||||
scriptitem_T *script = SCRIPT_ITEM(sid);
|
||||
|
||||
// Find name in "script".
|
||||
idx = get_script_item_idx(sid, name, 0, cctx);
|
||||
idx = get_script_item_idx(sid, name, 0, cctx, cstack);
|
||||
if (idx >= 0)
|
||||
{
|
||||
sv = ((svar_T *)script->sn_var_vals.ga_data) + idx;
|
||||
|
Reference in New Issue
Block a user