aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/runtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/runtime.c')
-rw-r--r--src/nvim/runtime.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/runtime.c b/src/nvim/runtime.c
index 401139a89a..a6ed5c7410 100644
--- a/src/nvim/runtime.c
+++ b/src/nvim/runtime.c
@@ -470,7 +470,8 @@ int do_in_cached_path(char *name, int flags, DoInRuntimepathCB callback, void *c
}
int ew_flags = ((flags & DIP_DIR) ? EW_DIR : EW_FILE)
- | (flags & DIP_DIRFILE) ? (EW_DIR|EW_FILE) : 0;
+ | ((flags & DIP_DIRFILE) ? (EW_DIR|EW_FILE) : 0)
+ | EW_NOBREAK;
// Expand wildcards, invoke the callback for each match.
char *(pat[]) = { buf };
@@ -670,7 +671,7 @@ static void expand_rtp_entry(RuntimeSearchPath *search_path, Map(String, handle_
int num_files;
char **files;
char *(pat[]) = { entry };
- if (gen_expand_wildcards(1, pat, &num_files, &files, EW_DIR) == OK) {
+ if (gen_expand_wildcards(1, pat, &num_files, &files, EW_DIR | EW_NOBREAK) == OK) {
for (int i = 0; i < num_files; i++) {
push_path(search_path, rtp_used, files[i], after);
}