vim-patch:7.4.1137

Problem:    Illegal memory access when using :copen and :cclose.
Solution:   Avoid that curbuf is invalid. (suggestion by Justin M. Keyes)
            Add a test.

62ef797496
This commit is contained in:
Justin M. Keyes
2016-01-28 23:28:23 -05:00
parent aa8b3b60ee
commit aa17b4b4bc
3 changed files with 31 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
-- Test for the quickfix commands.
local helpers = require('test.functional.helpers')
local insert, source = helpers.insert, helpers.source
local clear, expect = helpers.clear, helpers.expect
describe('helpgrep', function()
before_each(clear)
it('works', function()
source([[
helpgrep quickfix
copen
" This wipes out the buffer, make sure that doesn't cause trouble.
cclose
]])
end)
end)