summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-22 13:28:07 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-22 13:28:07 +0100
commit461a7fcfce3cd6414f990037e6468af3b5ccf119 (patch)
tree6498b1cf892206698e8b6951af503f6a953bf5ac /runtime
parent528ccfbaa1cc805f430a750c551e5a9fd7eb54fe (diff)
patch 8.1.0619: :echomsg and :echoerr do not handle List and Dictv8.1.0619
Problem: :echomsg and :echoerr do not handle List and Dict like :echo does. (Daniel Hahler) Solution: Be more tolerant about the expression result type.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index f76af3848a..2bc27a6295 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -9233,7 +9233,8 @@ test_ignore_error({expr}) *test_ignore_error()*
error with try/catch cannot be used (because it skips over
following code).
{expr} is used literally, not as a pattern.
- There is currently no way to revert this.
+ When the {expr} is the string "RESET" then the list of ignored
+ errors is made empty.
test_null_channel() *test_null_channel()*
Return a Channel that is null. Only useful for testing.
@@ -10999,8 +11000,8 @@ This does NOT work: >
The parsing works slightly different from |:echo|,
more like |:execute|. All the expressions are first
evaluated and concatenated before echoing anything.
- The expressions must evaluate to a Number or String, a
- Dictionary or List causes an error.
+ If expressions does not evaluate to a Number or
+ String, string() is used to turn it into a string.
Uses the highlighting set by the |:echohl| command.
Example: >
:echomsg "It's a Zizzer Zazzer Zuzz, as you can plainly see."
@@ -11011,7 +11012,7 @@ This does NOT work: >
message in the |message-history|. When used in a
script or function the line number will be added.
Spaces are placed between the arguments as with the
- :echo command. When used inside a try conditional,
+ |:echomsg| command. When used inside a try conditional,
the message is raised as an error exception instead
(see |try-echoerr|).
Example: >