diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-02-02 15:55:15 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-02-29 17:40:00 -0500 |
commit | 3c12ee333a519c5be1d8f63d7978b483a51a3da7 (patch) | |
tree | eacd0da0ae6a415dc3f2e3bb32dfb09cbaaa0c5b /runtime | |
parent | 1656367b90bd29d84d5ebf1ccef560368a1973cf (diff) | |
download | rneovim-3c12ee333a519c5be1d8f63d7978b483a51a3da7.tar.gz rneovim-3c12ee333a519c5be1d8f63d7978b483a51a3da7.tar.bz2 rneovim-3c12ee333a519c5be1d8f63d7978b483a51a3da7.zip |
vim-patch:8.1.0619: :echomsg and :echoerr do not handle List and Dict
Problem: :echomsg and :echoerr do not handle List and Dict like :echo does.
(Daniel Hahler)
Solution: Be more tolerant about the expression result type.
https://github.com/vim/vim/commit/461a7fcfce3cd6414f990037e6468af3b5ccf119
Add lua functional tests for :echo,:echon,:echomsg,:echoerr
because nvim did not port "test_" functions from Vim
that modify internal state.
Testing :echoerr via try/catch is sufficient.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 113a92d5e4..ce0218f1dd 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -10370,8 +10370,8 @@ text... 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." @@ -10382,7 +10382,7 @@ text... 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: > |