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. */
if (flags & EW_NOTFOUND) {
addfile(&ga, t, flags | EW_DIR | EW_FILE);
} else if (os_path_exists(t)) {
} else {
addfile(&ga, t, flags);
}
xfree(t);