aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/path.c
diff options
context:
space:
mode:
authorJurica Bradaric <jbradaric@gmail.com>2016-02-28 13:26:10 +0100
committerJurica Bradaric <jbradaric@gmail.com>2016-04-20 08:25:51 +0200
commit425fcdb5b4bc6dec05dafe2e2675c8a7cfe37187 (patch)
tree6aa7ad9c977e9a678ffd595f96873866610493f9 /src/nvim/path.c
parent29b737e92b5865918ca1e8c5a30e6c6f3a351915 (diff)
downloadrneovim-425fcdb5b4bc6dec05dafe2e2675c8a7cfe37187.tar.gz
rneovim-425fcdb5b4bc6dec05dafe2e2675c8a7cfe37187.tar.bz2
rneovim-425fcdb5b4bc6dec05dafe2e2675c8a7cfe37187.zip
vim-patch:7.4.1120
Problem: delete(x, 'rf') fails if a directory is empty. (Lcd) Solution: Ignore not finding matches in an empty directory. https://github.com/vim/vim/commit/336bd622c31e1805495c034e1a8cfadcc0bbabc7
Diffstat (limited to 'src/nvim/path.c')
-rw-r--r--src/nvim/path.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c
index a6e8aa6236..d3df9bc059 100644
--- a/src/nvim/path.c
+++ b/src/nvim/path.c
@@ -1223,7 +1223,7 @@ int gen_expand_wildcards(int num_pat, char_u **pat, int *num_file,
recursive = false;
- return (ga.ga_data != NULL) ? OK : FAIL;
+ return ((flags & EW_EMPTYOK) || ga.ga_data != NULL) ? OK : FAIL;
}