aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/fileio.c1
-rw-r--r--src/nvim/path.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index 31a1c0e293..724d754ca7 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -3618,6 +3618,7 @@ bool match_file_list(char *list, char *sfname, char *ffname)
/// @param pat_end first char after pattern or NULL
/// @param allow_dirs Result passed back out in here
/// @param no_bslash Don't use a backward slash as pathsep
+/// (only makes a difference when BACKSLASH_IN_FILENAME in defined)
///
/// @return NULL on failure.
char *file_pat_to_reg_pat(const char *pat, const char *pat_end, char *allow_dirs, int no_bslash)
diff --git a/src/nvim/path.c b/src/nvim/path.c
index c9bfd5228c..9cce504831 100644
--- a/src/nvim/path.c
+++ b/src/nvim/path.c
@@ -959,7 +959,7 @@ static void uniquefy_paths(garray_T *gap, char *pattern, char *path_option)
file_pattern[0] = '*';
file_pattern[1] = NUL;
strcat(file_pattern, pattern);
- char *pat = file_pat_to_reg_pat(file_pattern, NULL, NULL, true);
+ char *pat = file_pat_to_reg_pat(file_pattern, NULL, NULL, false);
xfree(file_pattern);
if (pat == NULL) {
return;