vim-patch:7.4.1991

Problem:    glob() does not add a symbolic link when there are no wildcards.
Solution:   Remove the call to mch_getperm().

00efded106
This commit is contained in:
James McCoy
2017-02-27 11:49:51 -05:00
parent be65fd88f4
commit eb6651b7a9
2 changed files with 2 additions and 2 deletions

View File

@@ -1225,7 +1225,7 @@ int gen_expand_wildcards(int num_pat, char_u **pat, int *num_file,
* "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 (os_path_exists(t)) { } else {
addfile(&ga, t, flags); addfile(&ga, t, flags);
} }
xfree(t); xfree(t);

View File

@@ -449,7 +449,7 @@ static int included_patches[] = {
// 1994, // 1994,
// 1993, // 1993,
// 1992, // 1992,
// 1991, 1991,
1990, 1990,
1989, 1989,
// 1988 NA // 1988 NA