mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.4656: Vim9: can't use item from "import autoload" with autoload dir
Problem: Vim9: can't use items from "import autoload" with autoload directory name. Solution: Let sn_autoload_prefix overrule sn_import_autoload. (closes #10054)
This commit is contained in:
@@ -415,6 +415,9 @@ handle_import_fname(char_u *fname, int is_autoload, int *sid)
|
||||
si = SCRIPT_ITEM(*sid);
|
||||
si->sn_import_autoload = TRUE;
|
||||
|
||||
if (si->sn_autoload_prefix == NULL)
|
||||
si->sn_autoload_prefix = get_autoload_prefix(si);
|
||||
|
||||
// with testing override: load autoload script right away
|
||||
if (!override_autoload || si->sn_state != SN_STATE_NOT_LOADED)
|
||||
return OK;
|
||||
|
Reference in New Issue
Block a user