aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-06-15 06:30:55 +0800
committerGitHub <noreply@github.com>2024-06-15 06:30:55 +0800
commitbcca597e175e4d5b6587dd3761c305a773369df8 (patch)
tree151b50e9dfa952bbc6902e76e939cc48261d8f59 /src
parent79ed11f257129f9bddf37c006ae8bee5dec4d5d1 (diff)
parentb969e3e0b994db8bf5a5aba498f36ae4ab2555c1 (diff)
downloadrneovim-bcca597e175e4d5b6587dd3761c305a773369df8.tar.gz
rneovim-bcca597e175e4d5b6587dd3761c305a773369df8.tar.bz2
rneovim-bcca597e175e4d5b6587dd3761c305a773369df8.zip
Merge pull request #29339 from zeertzjq/vim-a3bddb759e77
vim-patch:a3bddb7,d6d4e13,262e25e,c509c00
Diffstat (limited to 'src')
-rw-r--r--src/nvim/eval.lua19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
index 93a2bce2a5..e411db0170 100644
--- a/src/nvim/eval.lua
+++ b/src/nvim/eval.lua
@@ -7264,17 +7264,14 @@ M.funcs = {
When {flags} is present it must be a string. An empty string
has no effect.
- If {flags} contains "p" then intermediate directories are
- created as necessary.
-
- If {flags} contains "D" then {name} is deleted at the end of
- the current function, as with: >vim
- defer delete({name}, 'd')
- <
- If {flags} contains "R" then {name} is deleted recursively at
- the end of the current function, as with: >vim
- defer delete({name}, 'rf')
- <Note that when {name} has more than one part and "p" is used
+ {flags} can contain these character flags:
+ "p" intermediate directories will be created as necessary
+ "D" {name} will be deleted at the end of the current
+ function, but not recursively |:defer|
+ "R" {name} will be deleted recursively at the end of the
+ current function |:defer|
+
+ Note that when {name} has more than one part and "p" is used
some directories may already exist. Only the first one that
is created and what it contains is scheduled to be deleted.
E.g. when using: >vim