vim-patch:7.4.1699 (#5660)

Problem:    :packadd does not work the same when used early or late.
Solution:   Always load plugins matching "plugin/**/*.vim".

71fb0c146b
This commit is contained in:
Michael Ennen
2016-11-29 15:19:25 -07:00
committed by Justin M. Keyes
parent 3979c6cbed
commit 783c9aac8e
3 changed files with 8 additions and 3 deletions

View File

@@ -2552,7 +2552,7 @@ static void add_pack_plugin(char_u *fname, void *cookie)
}
if (cookie != &APP_ADD_DIR) {
static const char *plugpat = "%s/plugin/*.vim"; // NOLINT
static const char *plugpat = "%s/plugin/**/*.vim"; // NOLINT
static const char *ftpat = "%s/ftdetect/*.vim"; // NOLINT
size_t len = STRLEN(ffname) + STRLEN(ftpat);