diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-13 21:51:08 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-13 21:51:08 +0000 |
commit | 4b1d9639726ebe1630991488a1314db628b6b854 (patch) | |
tree | 1c917ecce981d10d7a8abcd1a92530df399d786d /src/evalvars.c | |
parent | 0631bb4ed7674b88ba395daf59ed222f77bc4913 (diff) |
patch 8.2.4375: ctx_imports is not usedv8.2.4375
Problem: ctx_imports is not used.
Solution: Delete ctx_imports. Add missing dependency.
Diffstat (limited to 'src/evalvars.c')
-rw-r--r-- | src/evalvars.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/evalvars.c b/src/evalvars.c index d182a0e85a..8e862df8bb 100644 --- a/src/evalvars.c +++ b/src/evalvars.c @@ -2735,7 +2735,7 @@ eval_variable( char_u *p = STRNCMP(name, "s:", 2) == 0 ? name + 2 : name; if (sid == 0) - import = find_imported(p, 0, TRUE, NULL); + import = find_imported(p, 0, TRUE); // imported variable from another script if (import != NULL || sid != 0) @@ -3096,7 +3096,7 @@ lookup_scriptitem( res = HASHITEM_EMPTY(hi) ? FAIL : OK; // if not script-local, then perhaps imported - if (res == FAIL && find_imported(p, 0, FALSE, NULL) != NULL) + if (res == FAIL && find_imported(p, 0, FALSE) != NULL) res = OK; if (p != buffer) vim_free(p); @@ -3491,7 +3491,7 @@ set_var_const( if (di == NULL && var_in_vim9script) { - imported_T *import = find_imported(varname, 0, FALSE, NULL); + imported_T *import = find_imported(varname, 0, FALSE); if (import != NULL) { @@ -4696,7 +4696,7 @@ expand_autload_callback(callback_T *cb) p = vim_strchr(name, '.'); if (p == NULL) return; - import = find_imported(name, p - name, FALSE, NULL); + import = find_imported(name, p - name, FALSE); if (import != NULL && SCRIPT_ID_VALID(import->imp_sid)) { scriptitem_T *si = SCRIPT_ITEM(import->imp_sid); |