mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
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.
336bd622c3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user