mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38:17 +00:00
vim-patch:8.2.2059: Amiga: can't find plugins
Problem: Amiga: can't find plugins.
Solution: Do not use "**" in the pattern. (Ola Söder, closes vim/vim#7384)
6ee874d378
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user