test(startup_spec): add a test for #18315 (#24391)

This commit is contained in:
zeertzjq
2023-07-19 07:14:32 +08:00
committed by GitHub
parent be74807eef
commit ab5cdbd167
2 changed files with 34 additions and 11 deletions

View File

@@ -1237,7 +1237,8 @@ void load_plugins(void)
add_pack_start_dirs();
}
// don't use source_runtime() yet so we can check for :packloadall below
// Don't use source_runtime_vim_lua() yet so we can check for :packloadall below.
// NB: after calling this "rtp_copy" may have been freed if it wasn't copied.
source_in_path_vim_lua(rtp_copy, plugin_pattern, DIP_ALL | DIP_NOAFTER);
TIME_MSG("loading rtp plugins");