forked from aniani/vim
patch 8.2.4740: when expand() fails there is no error message
Problem: When expand() fails there is no error message. Solution: When 'verbose' is set give an error message.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user