diff options
author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-03-14 22:55:14 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-15 11:50:22 -0300 |
commit | 1949acc806e89dc0d2766b2b41eae1cac3186642 (patch) | |
tree | 1baad3b84e7ce42b7394e8ccc66670845cc5ccaf /src/os_unix.c | |
parent | c83e8b4dc74ba010e0279b67ef8ffa14103d89f6 (diff) | |
download | rneovim-1949acc806e89dc0d2766b2b41eae1cac3186642.tar.gz rneovim-1949acc806e89dc0d2766b2b41eae1cac3186642.tar.bz2 rneovim-1949acc806e89dc0d2766b2b41eae1cac3186642.zip |
Revive vim_fname (-> os_file_exists); fix misuse of mch_getperm.
* Move vim_fname from misc1 to os/fs:os_file_exists.
* Add unit tests for os_file_exists.
* Replace misuse of mch_getperm with os_file_exists.
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index c7e083a2d5..bbb27b239b 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3063,7 +3063,7 @@ int flags; /* EW_* flags */ */ for (j = 0, i = 0; i < *num_file; ++i) { /* Require the files to exist. Helps when using /bin/sh */ - if (!(flags & EW_NOTFOUND) && mch_getperm((*file)[i]) < 0) + if (!(flags & EW_NOTFOUND) && !os_file_exists((*file)[i])) continue; /* check if this entry should be included */ |