aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-15 13:06:29 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-04-15 13:09:05 +0800
commit0eddf5ad2fc3a5d5dd4be09a75aed198337ce032 (patch)
tree4b930c1e7e925f57701484255525a4b3e239d882
parentc2e47e7bec0394a2cc12c8f83e3e5950ad99d1b4 (diff)
downloadrneovim-0eddf5ad2fc3a5d5dd4be09a75aed198337ce032.tar.gz
rneovim-0eddf5ad2fc3a5d5dd4be09a75aed198337ce032.tar.bz2
rneovim-0eddf5ad2fc3a5d5dd4be09a75aed198337ce032.zip
vim-patch:8.2.0101: crash when passing null object to ":echomsg"
Problem: Crash when passing null object to ":echomsg". Solution: Check for NULL pointer. (Yasuhiro Matsumoto, closes vim/vim#5460) https://github.com/vim/vim/commit/9db2afe46d3208775d1c3075bbee073a17f8fdc6 Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--test/old/testdir/test_messages.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/old/testdir/test_messages.vim b/test/old/testdir/test_messages.vim
index bfdebdac79..1afab6d359 100644
--- a/test/old/testdir/test_messages.vim
+++ b/test/old/testdir/test_messages.vim
@@ -403,6 +403,16 @@ func Test_ask_yesno()
call StopVimInTerminal(buf)
endfunc
+func Test_null()
+ echom test_null_list()
+ echom test_null_dict()
+ echom test_null_blob()
+ echom test_null_job()
+ echom test_null_string()
+ echom test_null_channel()
+ echom test_null_partial()
+endfunc
+
func Test_mapping_at_hit_return_prompt()
nnoremap <C-B> :echo "hit ctrl-b"<CR>
call feedkeys(":ls\<CR>", "xt")