mirror of
https://github.com/neovim/neovim.git
synced 2025-11-17 15:51:32 +00:00
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:
18
test/functional/legacy/quickfix_spec.lua
Normal file
18
test/functional/legacy/quickfix_spec.lua
Normal 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)
|
||||
Reference in New Issue
Block a user