aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/eval.txt
diff options
context:
space:
mode:
authorJurica Bradaric <jbradaric@gmail.com>2016-02-28 12:44:59 +0100
committerJurica Bradaric <jbradaric@gmail.com>2016-04-20 08:25:51 +0200
commit88a735166b7ee1eadaf6d46be11804dc0e1a251a (patch)
tree2b39c525bb9120f6cc192106f0f93d7b4ca9016a /runtime/doc/eval.txt
parent50a7517a6deb7d8eaa02bf718e273b7058066d89 (diff)
downloadrneovim-88a735166b7ee1eadaf6d46be11804dc0e1a251a.tar.gz
rneovim-88a735166b7ee1eadaf6d46be11804dc0e1a251a.tar.bz2
rneovim-88a735166b7ee1eadaf6d46be11804dc0e1a251a.zip
vim-patch:7.4.1114
Problem: delete() does not work well with symbolic links. Solution: Recognize symbolik links. https://github.com/vim/vim/commit/43a34f9f74fdce462fa250baab620264c28b6165
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r--runtime/doc/eval.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 9437491623..fea9423df2 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2772,13 +2772,14 @@ deepcopy({expr}[, {noref}]) *deepcopy()* *E698*
delete({fname} [, {flags}]) *delete()*
Without {flags} or with {flags} empty: Deletes the file by the
- name {fname}.
+ name {fname}. This also works when {fname} is a symbolic link.
+ A symbolic link itself is deleted, not what it points to.
When {flags} is "d": Deletes the directory by the name
- {fname}. This fails when {fname} is not empty.
+ {fname}. This fails when directory {fname} is not empty.
When {flags} is "rf": Deletes the directory by the name
- {fname} and everything in it, recursively. Be careful!
+ {fname} and everything in it, recursively. BE CAREFUL!
The result is a Number, which is 0 if the delete operation was
successful and -1 when the deletion failed or partly failed.