0
0
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:
Bram Moolenaar
2022-01-13 22:05:09 +00:00
parent d9d2fd0aa3
commit 3e4fa3d7d3
6 changed files with 53 additions and 7 deletions

View File

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