diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-22 19:13:19 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-22 19:13:19 +0200 |
commit | db950e4c0318c084c31bc7b50665284f4a47c285 (patch) | |
tree | 8fa34b37c732b7ab94fa0b2408c2b66f4d5876e0 /src/testdir | |
parent | d2662ad2de40e68999198150024531c91fece16c (diff) |
patch 8.2.0618: echoing a null list results in no outputv8.2.0618
Problem: Echoing a null list results in no output. (Yegappan Lakshmanan)
Solution: Return "[]" instead of NULL in echo_string_core().
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_messages.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/test_messages.vim b/src/testdir/test_messages.vim index 32ffb48a8d..ac91aa097b 100644 --- a/src/testdir/test_messages.vim +++ b/src/testdir/test_messages.vim @@ -76,6 +76,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, test_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') |