mirror of
https://github.com/neovim/neovim.git
synced 2025-12-09 16:12:48 +00:00
vim-patch:8.2.2848: crash whn calling partial
Problem: Crash whn calling partial.
Solution: Check for NULL pointer. (Dominique Pellé, closes vim/vim#8202)
fe8ebdbe5c
Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com>
This commit is contained in:
@@ -2009,6 +2009,12 @@ func Test_call()
|
||||
eval mydict.len->call([], mydict)->assert_equal(4)
|
||||
call assert_fails("call call('Mylen', [], 0)", 'E715:')
|
||||
call assert_fails('call foo', 'E107:')
|
||||
|
||||
" This once caused a crash.
|
||||
" Nvim doesn't have null functions
|
||||
" call call(test_null_function(), [])
|
||||
" Nvim doesn't have null partials
|
||||
" call call(test_null_partial(), [])
|
||||
endfunc
|
||||
|
||||
func Test_char2nr()
|
||||
|
||||
Reference in New Issue
Block a user