0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.1114

Problem:    delete() does not work well with symbolic links.
Solution:   Recognize symbolik links.
This commit is contained in:
Bram Moolenaar
2016-01-17 15:56:34 +01:00
parent 4119cf80e1
commit 43a34f9f74
7 changed files with 105 additions and 6 deletions

View File

@@ -10418,7 +10418,7 @@ f_delete(argvars, rettv)
/* delete an empty directory */
rettv->vval.v_number = mch_rmdir(name) == 0 ? 0 : -1;
else if (STRCMP(flags, "rf") == 0)
/* delete an directory recursively */
/* delete a directory recursively */
rettv->vval.v_number = delete_recursive(name);
else
EMSG2(_(e_invexpr2), flags);