0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.4375: ctx_imports is not used

Problem:    ctx_imports is not used.
Solution:   Delete ctx_imports.  Add missing dependency.
This commit is contained in:
Bram Moolenaar
2022-02-13 21:51:08 +00:00
parent 0631bb4ed7
commit 4b1d963972
11 changed files with 24 additions and 63 deletions

View File

@@ -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);