1
0
forked from aniani/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.
This commit is contained in:
Bram Moolenaar
2016-01-17 18:23:58 +01:00
parent 72defda84e
commit 336bd622c3
5 changed files with 7 additions and 2 deletions

View File

@@ -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