mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 9.1.1044: Vim9: Patch 9.1.1014 causes regressions
Problem: Vim9: Patch 9.1.1014 causes regressions
Solution: revert it for now
This reverts commit 57f0119358
since this
causes some regressions:
https://github.com/vim/vim/pull/16440#issuecomment-2600235629
So revert "patch 9.1.1014: Vim9: variable not found in transitive
import" for now.
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -778,7 +778,6 @@ get_script_item_idx(
|
||||
static imported_T *
|
||||
find_imported_in_script(char_u *name, size_t len, int sid)
|
||||
{
|
||||
static int nesting = 0;
|
||||
scriptitem_T *si;
|
||||
int idx;
|
||||
|
||||
@@ -793,19 +792,6 @@ find_imported_in_script(char_u *name, size_t len, int sid)
|
||||
: STRLEN(import->imp_name) == len
|
||||
&& STRNCMP(name, import->imp_name, len) == 0)
|
||||
return import;
|
||||
else
|
||||
{
|
||||
if (nesting >= p_mfd)
|
||||
{
|
||||
emsg(_(e_import_nesting_too_deep));
|
||||
return NULL;
|
||||
}
|
||||
++nesting;
|
||||
import = find_imported_in_script(name, len, import->imp_sid);
|
||||
--nesting;
|
||||
if (import != NULL)
|
||||
return import;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user