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().
diff --git a/src/vim9script.c b/src/vim9script.c
index baf2019..2038c78 100644
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -496,6 +496,9 @@
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;