summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-04-12 12:54:11 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-12 12:54:11 +0100
commit575445200bd35283191ecd7a0d596b37c5b477a4 (patch)
tree2188e3f108e7337222c859bc3ca2ab51227cd61b /runtime
parentd58862d18f091d3c14fa3647e724ef7eea1ecefa (diff)
patch 8.2.4740: when expand() fails there is no error messagev8.2.4740
Problem: When expand() fails there is no error message. Solution: When 'verbose' is set give an error message.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/builtin.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 4fb12ff865..f6a791d9fa 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -2270,6 +2270,9 @@ expand({string} [, {nosuf} [, {list}]]) *expand()*
is not defined, an empty string is used. Using "%:p" in a
buffer with no name, results in the current directory, with a
'/' added.
+ When 'verbose' is set then expanding '%', '#' and <> items
+ will result in an error message if the argument cannot be
+ expanded.
When {string} does not start with '%', '#' or '<', it is
expanded like a file name is expanded on the command line.