From ab5cdbd167353a0c6a0ef0b864d78af13029339c Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 19 Jul 2023 07:14:32 +0800 Subject: test(startup_spec): add a test for #18315 (#24391) --- src/nvim/runtime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/runtime.c b/src/nvim/runtime.c index 9614937c4c..290b773371 100644 --- a/src/nvim/runtime.c +++ b/src/nvim/runtime.c @@ -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"); -- cgit