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)

9db2afe46d

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq 2023-04-15 13:06:29 +08:00
parent c2e47e7bec
commit 0eddf5ad2f

View File

@ -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")