0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.1991

Problem:    glob() does not add a symbolic link when there are no wildcards.
Solution:   Remove the call to mch_getperm().
This commit is contained in:
Bram Moolenaar
2016-07-07 14:29:10 +02:00
parent 80632db65e
commit 00efded106
2 changed files with 3 additions and 1 deletions

View File

@@ -10864,7 +10864,7 @@ gen_expand_wildcards(
* "vim c:/" work. */ * "vim c:/" work. */
if (flags & EW_NOTFOUND) if (flags & EW_NOTFOUND)
addfile(&ga, t, flags | EW_DIR | EW_FILE); addfile(&ga, t, flags | EW_DIR | EW_FILE);
else if (mch_getperm(t) >= 0) else
addfile(&ga, t, flags); addfile(&ga, t, flags);
vim_free(t); vim_free(t);
} }

View File

@@ -758,6 +758,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1991,
/**/ /**/
1990, 1990,
/**/ /**/