summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/terminal
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2020-09-06 10:34:44 -0700
committerGitHub <noreply@github.com>2020-09-06 10:34:44 -0700
commitd9dd30a955073d602741481d48e1c56d1fcae420 (patch)
tree586c14820bc373568db0d9660583d0958f1d6d0f /test/functional/terminal
parentc685a2ef487ebfffeb93274eee79d29c7e6bd6d1 (diff)
parentb2cef8b6650627f65c43029645942d46103a77df (diff)
Merge #12822 release-0.4 patchesrelease-0.4
Diffstat (limited to 'test/functional/terminal')
-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 c6ea0c0e6b..fb6e0d0e94 100644
--- a/test/functional/terminal/buffer_spec.lua
+++ b/test/functional/terminal/buffer_spec.lua
@@ -264,3 +264,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)