summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-17 18:23:58 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-17 18:23:58 +0100
commit336bd622c31e1805495c034e1a8cfadcc0bbabc7 (patch)
treecd49277ac430addcad75432e8d9a462cab82e0a4 /src/misc1.c
parent72defda84eb26be9e2ade56c7877b912f818026e (diff)
downloadvim-git-336bd622c31e1805495c034e1a8cfadcc0bbabc7.tar.gz
patch 7.4.1120v7.4.1120
Problem: delete(x, 'rf') fails if a directory is empty. (Lcd) Solution: Ignore not finding matches in an empty directory.
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 fd63ec37f..a44e4d681 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -11087,7 +11087,7 @@ gen_expand_wildcards(num_pat, pat, num_file, file, flags)
recursive = FALSE;
- return (ga.ga_data != NULL) ? retval : FAIL;
+ return ((flags & EW_EMPTYOK) || ga.ga_data != NULL) ? retval : FAIL;
}
# ifdef VIM_BACKTICK