aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/buffer_spec.lua
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2020-07-28 00:51:41 +0900
committererw7 <erw7.github@gmail.com>2020-07-29 02:16:50 +0900
commitb6b270b28fa92d5bedca397313b5370893fe0e3f (patch)
treecc4551d4868461f82bbb37130fb32ab0fda1fb6c /test/functional/terminal/buffer_spec.lua
parent33eaa171fad0c8b729b0db14eef3173dbd8c950b (diff)
downloadrneovim-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.lua9
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)