From 628a1caa692630974bceb8338eedc56ddef6cb14 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 27 Nov 2020 20:30:06 -0500 Subject: vim-patch:8.2.2059: Amiga: can't find plugins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Amiga: can't find plugins. Solution: Do not use "**" in the pattern. (Ola Söder, closes vim/vim#7384) https://github.com/vim/vim/commit/6ee874d378829b62e0944063a9a029e81b5debfb --- src/nvim/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/main.c b/src/nvim/main.c index 941258fa79..63249416b1 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -1333,6 +1333,7 @@ static void load_plugins(void) { if (p_lpl) { char_u *rtp_copy = NULL; + char_u *const plugin_pattern = (char_u *)"plugin/**/*.vim"; // NOLINT // First add all package directories to 'runtimepath', so that their // autoload directories can be found. Only if not done already with a @@ -1345,7 +1346,7 @@ static void load_plugins(void) } source_in_path(rtp_copy == NULL ? p_rtp : rtp_copy, - (char_u *)"plugin/**/*.vim", // NOLINT + plugin_pattern, DIP_ALL | DIP_NOAFTER); TIME_MSG("loading plugins"); xfree(rtp_copy); @@ -1357,7 +1358,7 @@ static void load_plugins(void) } TIME_MSG("loading packages"); - source_runtime((char_u *)"plugin/**/*.vim", DIP_ALL | DIP_AFTER); + source_runtime(plugin_pattern, DIP_ALL | DIP_AFTER); TIME_MSG("loading after plugins"); } } -- cgit