aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/quickfix_spec.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-11-12 15:58:19 -0500
committerJames McCoy <jamessan@jamessan.com>2016-11-15 23:16:09 -0500
commit2e5736e2cd4ef14ec23c1e0176fbcb17c9f55eba (patch)
tree263692e3c77d12d9671af0bddda2e360443f29f7 /test/functional/legacy/quickfix_spec.lua
parent830bf8665b6a98705b16d977ca7d11c2ca51dca8 (diff)
downloadrneovim-2e5736e2cd4ef14ec23c1e0176fbcb17c9f55eba.tar.gz
rneovim-2e5736e2cd4ef14ec23c1e0176fbcb17c9f55eba.tar.bz2
rneovim-2e5736e2cd4ef14ec23c1e0176fbcb17c9f55eba.zip
vim-patch:7.4.1664
Problem: Crash in :cgetexpr. Solution: Check for NULL pointer. (Dominique) Add a test. https://github.com/vim/vim/commit/89c64d557dbe0bacfdd7b2872411b00cc1523d85
Diffstat (limited to 'test/functional/legacy/quickfix_spec.lua')
-rw-r--r--test/functional/legacy/quickfix_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/legacy/quickfix_spec.lua b/test/functional/legacy/quickfix_spec.lua
index 5e5aefc4e6..5787ff8ff3 100644
--- a/test/functional/legacy/quickfix_spec.lua
+++ b/test/functional/legacy/quickfix_spec.lua
@@ -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()