vim-patch:7.4.1664

Problem:    Crash in :cgetexpr.
Solution:   Check for NULL pointer. (Dominique) Add a test.

89c64d557d
This commit is contained in:
James McCoy
2016-11-12 15:58:19 -05:00
parent 830bf8665b
commit 2e5736e2cd
3 changed files with 10 additions and 2 deletions

View File

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