mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
vim-patch:8.1.1791: 'completeslash' also applies to globpath()
Problem: 'completeslash' also applies to globpath(). Solution: Add the WILD_IGNORE_COMPLETESLASH flag. (test by Yasuhiro Matsumoto, closes vim/vim#4760)
This commit is contained in:
@@ -4990,7 +4990,7 @@ ExpandFromContext (
|
||||
char_u *pat,
|
||||
int *num_file,
|
||||
char_u ***file,
|
||||
int options /* EW_ flags */
|
||||
int options // WILD_ flags
|
||||
)
|
||||
{
|
||||
regmatch_T regmatch;
|
||||
@@ -5053,7 +5053,7 @@ ExpandFromContext (
|
||||
if (free_pat)
|
||||
xfree(pat);
|
||||
#ifdef BACKSLASH_IN_FILENAME
|
||||
if (p_csl[0] != NUL) {
|
||||
if (p_csl[0] != NUL && (options & WILD_IGNORE_COMPLETESLASH) == 0) {
|
||||
for (int i = 0; i < *num_file; i++) {
|
||||
char_u *ptr = (*file)[i];
|
||||
while (*ptr != NUL) {
|
||||
|
Reference in New Issue
Block a user