mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.4087: cannot test items from an autoload script easily
Problem: Cannot test items from an autoload script easily. Solution: Add the "autoload" value for test_override().
This commit is contained in:
@@ -496,6 +496,9 @@ handle_import(
|
||||
if (si->sn_autoload_prefix == NULL)
|
||||
si->sn_autoload_prefix = get_autoload_prefix(si);
|
||||
res = OK;
|
||||
if (override_autoload && si->sn_state == SN_STATE_NOT_LOADED)
|
||||
// testing override: load autoload script right away
|
||||
(void)do_source(si->sn_name, FALSE, DOSO_NONE, NULL);
|
||||
}
|
||||
else
|
||||
res = FAIL;
|
||||
|
Reference in New Issue
Block a user