terminal: fix terminal attribute overflow

fixes #11548
This commit is contained in:
erw7
2020-07-28 00:51:41 +09:00
parent 33eaa171fa
commit b6b270b28f
4 changed files with 16 additions and 3 deletions

View File

@@ -276,3 +276,12 @@ describe('No heap-buffer-overflow when using', function()
feed_command('bdelete!')
end)
end)
describe('No heap-buffer-overflow when', function()
it('set nowrap and send long line #11548', function()
feed_command('set nowrap')
feed_command('autocmd TermOpen * startinsert')
feed_command('call feedkeys("4000ai\\<esc>:terminal!\\<cr>")')
eq(2, eval('1+1'))
end)
end)