diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 13:31:30 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-15 13:48:30 +0800 |
commit | 85741677c86f7686e3597a310f8059608e7816fb (patch) | |
tree | 2d203ebcd6609c1db6c61cde4d43fccb7424f341 /test/old/testdir/test_getvar.vim | |
parent | 4b49f312a05214d5d1974f7ac2702ffb407fc558 (diff) | |
download | rneovim-85741677c86f7686e3597a310f8059608e7816fb.tar.gz rneovim-85741677c86f7686e3597a310f8059608e7816fb.tar.bz2 rneovim-85741677c86f7686e3597a310f8059608e7816fb.zip |
vim-patch:8.2.0634: crash with null partial and blob
Problem: Crash with null partial and blob.
Solution: Check for NULL pointer. Add more tests. (Yegappan Lakshmanan,
closes vim/vim#5984)
https://github.com/vim/vim/commit/92b83ccfda7a1d654ccaaf161a9c8a8e01fbcf76
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old/testdir/test_getvar.vim')
-rw-r--r-- | test/old/testdir/test_getvar.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/old/testdir/test_getvar.vim b/test/old/testdir/test_getvar.vim index e6b6341fce..331f3cfe8a 100644 --- a/test/old/testdir/test_getvar.vim +++ b/test/old/testdir/test_getvar.vim @@ -150,6 +150,12 @@ func Test_get_func() call assert_equal({'func has': 'no dict'}, get(l:F, 'dict', {'func has': 'no dict'})) call assert_equal(0, get(l:F, 'dict')) call assert_equal([], get(l:F, 'args')) + " Nvim doesn't have null functions + " let NF = test_null_function() + " call assert_equal('', get(NF, 'name')) + " call assert_equal(NF, get(NF, 'func')) + " call assert_equal(0, get(NF, 'dict')) + " call assert_equal([], get(NF, 'args')) endfunc " get({partial}, {what} [, {default}]) - in test_partial.vim |