mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00

Problem: Illegal memory access when using :copen and :cclose.
Solution: Avoid that curbuf is invalid. (suggestion by Justin M. Keyes)
Add a test.
62ef797496
19 lines
429 B
Lua
19 lines
429 B
Lua
-- 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)
|