Mercurial > vim
changeset 23025:3204c5e23474 v8.2.2059
patch 8.2.2059: Amiga: can't find plugins
Commit: https://github.com/vim/vim/commit/6ee874d378829b62e0944063a9a029e81b5debfb
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Nov 27 19:01:31 2020 +0100
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 https://github.com/vim/vim/issues/7384)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 27 Nov 2020 19:15:04 +0100 |
parents | 201ca8c66377 |
children | 1f43d20ca299 |
files | src/main.c src/version.c |
diffstat | 2 files changed, 11 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main.c +++ b/src/main.c @@ -432,6 +432,13 @@ vim_main2(void) if (p_lpl) { char_u *rtp_copy = NULL; + char_u *plugin_pattern = (char_u *) +# if defined(VMS) || defined(AMIGA) // VMS and Amiga don't handle the "**". + "plugin/*.vim" +# else + "plugin/**/*.vim" +# endif + ; // First add all package directories to 'runtimepath', so that their // autoload directories can be found. Only if not done already with a @@ -444,12 +451,7 @@ vim_main2(void) add_pack_start_dirs(); } - source_in_path(rtp_copy == NULL ? p_rtp : rtp_copy, -# ifdef VMS // Somehow VMS doesn't handle the "**". - (char_u *)"plugin/*.vim", -# else - (char_u *)"plugin/**/*.vim", -# endif + source_in_path(rtp_copy == NULL ? p_rtp : rtp_copy, plugin_pattern, DIP_ALL | DIP_NOAFTER, NULL); TIME_MSG("loading plugins"); vim_free(rtp_copy); @@ -460,13 +462,8 @@ vim_main2(void) load_start_packages(); TIME_MSG("loading packages"); -# ifdef VMS // Somehow VMS doesn't handle the "**". - source_runtime((char_u *)"plugin/*.vim", DIP_ALL | DIP_AFTER); -# else - source_runtime((char_u *)"plugin/**/*.vim", DIP_ALL | DIP_AFTER); -# endif + source_runtime(plugin_pattern, DIP_ALL | DIP_AFTER); TIME_MSG("loading after plugins"); - } #endif