diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-07 22:29:51 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-07 22:29:51 +0000 |
commit | a203182302733c0ea98d66ee1f576f251697dc81 (patch) | |
tree | d15b59030f051a7768f77f7a98c860a0387c09fe /src/os_vms.c | |
parent | 362e1a30c6f3527d5d0efc328c2fb448290cd6fc (diff) | |
download | vim-a203182302733c0ea98d66ee1f576f251697dc81.zip |
updated for version 7.0217
Diffstat (limited to 'src/os_vms.c')
-rw-r--r-- | src/os_vms.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/os_vms.c b/src/os_vms.c index b1706fea3..28976b131 100644 --- a/src/os_vms.c +++ b/src/os_vms.c @@ -445,10 +445,16 @@ mch_expand_wildcards(int num_pat, char_u **pat, int *num_file, char_u ***file, i /* files should exist if expanding interactively */ if (!(flags & EW_NOTFOUND) && mch_getperm(vms_fmatch[i]) < 0) continue; + /* do not include directories */ dir = (mch_isdir(vms_fmatch[i])); if (( dir && !(flags & EW_DIR)) || (!dir && !(flags & EW_FILE))) continue; + + /* Skip files that are not executable if we check for that. */ + if (!dir && (flags & EW_EXEC) && !mch_can_exe(vms_fmatch[i])) + continue; + /* allocate memory for pointers */ if (--files_free < 1) { |