diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-11-27 20:30:06 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-11-27 21:24:59 -0500 |
commit | 628a1caa692630974bceb8338eedc56ddef6cb14 (patch) | |
tree | bf585acfcdc24a1123877f74b19be38987c27eed /src | |
parent | 7b8b7860622d35c1e445170bf49f420cb2634099 (diff) | |
download | rneovim-628a1caa692630974bceb8338eedc56ddef6cb14.tar.gz rneovim-628a1caa692630974bceb8338eedc56ddef6cb14.tar.bz2 rneovim-628a1caa692630974bceb8338eedc56ddef6cb14.zip |
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)
https://github.com/vim/vim/commit/6ee874d378829b62e0944063a9a029e81b5debfb
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
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"); } } |