diff options
author | erw7 <erw7.github@gmail.com> | 2020-07-28 00:51:41 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2020-07-29 02:16:50 +0900 |
commit | b6b270b28fa92d5bedca397313b5370893fe0e3f (patch) | |
tree | cc4551d4868461f82bbb37130fb32ab0fda1fb6c /test/functional/terminal/buffer_spec.lua | |
parent | 33eaa171fad0c8b729b0db14eef3173dbd8c950b (diff) | |
download | rneovim-b6b270b28fa92d5bedca397313b5370893fe0e3f.tar.gz rneovim-b6b270b28fa92d5bedca397313b5370893fe0e3f.tar.bz2 rneovim-b6b270b28fa92d5bedca397313b5370893fe0e3f.zip |
terminal: fix terminal attribute overflow
fixes #11548
Diffstat (limited to 'test/functional/terminal/buffer_spec.lua')
-rw-r--r-- | test/functional/terminal/buffer_spec.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/terminal/buffer_spec.lua b/test/functional/terminal/buffer_spec.lua index f79aceaddf..6372cd935e 100644 --- a/test/functional/terminal/buffer_spec.lua +++ b/test/functional/terminal/buffer_spec.lua @@ -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) |