mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
vim-patch:7.4.1664
Problem: Crash in :cgetexpr.
Solution: Check for NULL pointer. (Dominique) Add a test.
89c64d557d
This commit is contained in:
@@ -540,6 +540,12 @@ describe('helpgrep', function()
|
||||
call('Test_caddbuffer_to_empty')
|
||||
expected_empty()
|
||||
end)
|
||||
|
||||
it('cgetexpr does not crash with a NULL element in a list', function()
|
||||
execute('cgetexpr [$x]')
|
||||
-- Still alive?
|
||||
eq(2, eval('1+1'))
|
||||
end)
|
||||
end)
|
||||
|
||||
describe('errorformat', function()
|
||||
|
Reference in New Issue
Block a user