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:
@@ -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
|
||||
|
Reference in New Issue
Block a user