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 /src/nvim/eval/funcs.c | |
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 'src/nvim/eval/funcs.c')
-rw-r--r-- | src/nvim/eval/funcs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c index bd57cec794..be8e35b1de 100644 --- a/src/nvim/eval/funcs.c +++ b/src/nvim/eval/funcs.c @@ -9558,7 +9558,7 @@ static void f_stridx(typval_T *argvars, typval_T *rettv, FunPtr fptr) /* * "string()" function */ -static void f_string(typval_T *argvars, typval_T *rettv, FunPtr fptr) +void f_string(typval_T *argvars, typval_T *rettv, FunPtr fptr) { rettv->v_type = VAR_STRING; rettv->vval.v_string = (char_u *)encode_tv2string(&argvars[0], NULL); |