diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-20 07:49:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-20 07:49:31 +0800 |
commit | 1a57cd383684b7488e02e094f49dfe607bc53632 (patch) | |
tree | 5c52e5eeb62d73a7a9ec549bb70a5599024ccf76 /runtime/doc | |
parent | f342194396df126093f4575cea3a8546a6ba30a5 (diff) | |
parent | 15ca01b649fb35186f1eb9b4422c36f9d8d2c8b4 (diff) | |
download | rneovim-1a57cd383684b7488e02e094f49dfe607bc53632.tar.gz rneovim-1a57cd383684b7488e02e094f49dfe607bc53632.tar.bz2 rneovim-1a57cd383684b7488e02e094f49dfe607bc53632.zip |
Merge pull request #19852 from zeertzjq/vim-8.2.3623
vim-patch:8.2.{3623,4667}: expandcmd() fixes
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/builtin.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 0fc8a30c20..0be9e9b9d1 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -2074,10 +2074,13 @@ expandcmd({string}) *expandcmd()* like with |expand()|, and environment variables, anywhere in {string}. "~user" and "~/path" are only expanded at the start. - Returns the expanded string. Example: > + Returns the expanded string. If an error is encountered + during expansion, the unmodified {string} is returned. + Example: > :echo expandcmd('make %<.o') +< make /path/runtime/doc/builtin.o ~ -< Can also be used as a |method|: > + Can also be used as a |method|: > GetCommand()->expandcmd() < extend({expr1}, {expr2} [, {expr3}]) *extend()* |