comparison src/misc1.c @ 9420:9f78f3f0c81f v7.4.1991

commit https://github.com/vim/vim/commit/00efded1064427ab3f84e4d57af62e0aab876fc6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 7 14:29:10 2016 +0200 patch 7.4.1991 Problem: glob() does not add a symbolic link when there are no wildcards. Solution: Remove the call to mch_getperm().
author Christian Brabandt <cb@256bit.org>
date Thu, 07 Jul 2016 14:30:06 +0200
parents 32e34e574716
children b2aada04d84e
comparison
equal deleted inserted replaced
9419:435e0bfae17a 9420:9f78f3f0c81f
10862 #endif 10862 #endif
10863 /* When EW_NOTFOUND is used, always add files and dirs. Makes 10863 /* When EW_NOTFOUND is used, always add files and dirs. Makes
10864 * "vim c:/" work. */ 10864 * "vim c:/" work. */
10865 if (flags & EW_NOTFOUND) 10865 if (flags & EW_NOTFOUND)
10866 addfile(&ga, t, flags | EW_DIR | EW_FILE); 10866 addfile(&ga, t, flags | EW_DIR | EW_FILE);
10867 else if (mch_getperm(t) >= 0) 10867 else
10868 addfile(&ga, t, flags); 10868 addfile(&ga, t, flags);
10869 vim_free(t); 10869 vim_free(t);
10870 } 10870 }
10871 10871
10872 #if defined(FEAT_SEARCHPATH) 10872 #if defined(FEAT_SEARCHPATH)