mirror of
https://github.com/neovim/neovim.git
synced 2025-10-22 17:11:49 +00:00
test: segfault test for empty buffer paste on term
This commit is contained in:
@@ -258,6 +258,13 @@ describe(':terminal buffer', function()
|
|||||||
it('handles wqall', function()
|
it('handles wqall', function()
|
||||||
eq('Vim(wqall):E948: Job still running', exc_exec('wqall'))
|
eq('Vim(wqall):E948: Job still running', exc_exec('wqall'))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it('does not segfault when pasting empty buffer #13955', function()
|
||||||
|
feed_command('terminal')
|
||||||
|
feed('<c-\\><c-n>')
|
||||||
|
feed_command('put a') -- buffer a is empty
|
||||||
|
eq(2, eval('1+1')) -- check nvim still running
|
||||||
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
describe('No heap-buffer-overflow when using', function()
|
describe('No heap-buffer-overflow when using', function()
|
||||||
|
Reference in New Issue
Block a user