commit | 336bd622c31e1805495c034e1a8cfadcc0bbabc7 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jan 17 18:23:58 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jan 17 18:23:58 2016 +0100 |
tree | cd49277ac430addcad75432e8d9a462cab82e0a4 | |
parent | 72defda84eb26be9e2ade56c7877b912f818026e [diff] [blame] |
patch 7.4.1120 Problem: delete(x, 'rf') fails if a directory is empty. (Lcd) Solution: Ignore not finding matches in an empty directory.
diff --git a/src/misc1.c b/src/misc1.c index fd63ec3..a44e4d6 100644 --- a/src/misc1.c +++ b/src/misc1.c
@@ -11087,7 +11087,7 @@ recursive = FALSE; - return (ga.ga_data != NULL) ? retval : FAIL; + return ((flags & EW_EMPTYOK) || ga.ga_data != NULL) ? retval : FAIL; } # ifdef VIM_BACKTICK