diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-24 20:48:47 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-24 23:30:23 -0400 |
commit | a67bcb3fbfe3abac9a11ed5d1a1ffa7833a4d61f (patch) | |
tree | b2504e7d17adbed448081e6d8e115918f69253a6 | |
parent | 8b13ff0d0a24de0c1c1876e35cf7c3a3004a111a (diff) | |
download | rneovim-a67bcb3fbfe3abac9a11ed5d1a1ffa7833a4d61f.tar.gz rneovim-a67bcb3fbfe3abac9a11ed5d1a1ffa7833a4d61f.tar.bz2 rneovim-a67bcb3fbfe3abac9a11ed5d1a1ffa7833a4d61f.zip |
vim-patch:8.2.0618: echoing a null list results in no output
Problem: Echoing a null list results in no output. (Yegappan Lakshmanan)
Solution: Return "[]" instead of NULL in echo_string_core().
https://github.com/vim/vim/commit/db950e4c0318c084c31bc7b50665284f4a47c285
-rw-r--r-- | src/nvim/testdir/test_messages.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_messages.vim b/src/nvim/testdir/test_messages.vim index 7fbf04311d..ca14494248 100644 --- a/src/nvim/testdir/test_messages.vim +++ b/src/nvim/testdir/test_messages.vim @@ -74,6 +74,7 @@ func Test_echomsg() call assert_equal("\n12345", execute(':echomsg 12345')) call assert_equal("\n[]", execute(':echomsg []')) call assert_equal("\n[1, 2, 3]", execute(':echomsg [1, 2, 3]')) + call assert_equal("\n[1, 2, []]", execute(':echomsg [1, 2, v:_null_list]')) call assert_equal("\n{}", execute(':echomsg {}')) call assert_equal("\n{'a': 1, 'b': 2}", execute(':echomsg {"a": 1, "b": 2}')) if has('float') |