mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
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:
parent
c2e47e7bec
commit
0eddf5ad2f
@ -403,6 +403,16 @@ func Test_ask_yesno()
|
|||||||
call StopVimInTerminal(buf)
|
call StopVimInTerminal(buf)
|
||||||
endfunc
|
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()
|
func Test_mapping_at_hit_return_prompt()
|
||||||
nnoremap <C-B> :echo "hit ctrl-b"<CR>
|
nnoremap <C-B> :echo "hit ctrl-b"<CR>
|
||||||
call feedkeys(":ls\<CR>", "xt")
|
call feedkeys(":ls\<CR>", "xt")
|
||||||
|
Loading…
Reference in New Issue
Block a user