summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-07 14:29:10 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-07 14:29:10 +0200
commit00efded1064427ab3f84e4d57af62e0aab876fc6 (patch)
tree05f2784ee424f2ae924c316081433e4d0061d778 /src/misc1.c
parent80632db65e8f5f775dadbbc10c5ba6c173ebb24f (diff)
downloadvim-git-00efded1064427ab3f84e4d57af62e0aab876fc6.tar.gz
patch 7.4.1991v7.4.1991
Problem: glob() does not add a symbolic link when there are no wildcards. Solution: Remove the call to mch_getperm().
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c
index b5394a410..a39658e38 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -10864,7 +10864,7 @@ gen_expand_wildcards(
* "vim c:/" work. */
if (flags & EW_NOTFOUND)
addfile(&ga, t, flags | EW_DIR | EW_FILE);
- else if (mch_getperm(t) >= 0)
+ else
addfile(&ga, t, flags);
vim_free(t);
}