diff options
author | Dylan Armstrong <dylan@dylan.is> | 2021-02-26 19:55:32 -0600 |
---|---|---|
committer | Dylan Armstrong <dylan@dylan.is> | 2021-02-26 19:55:32 -0600 |
commit | a9eeeec5d5a64a8f3a11f38319d70537f929e667 (patch) | |
tree | 65d80efbb55090de90dd325b2e3be6a3de2a0c6c /test/functional/terminal/buffer_spec.lua | |
parent | 409b2711fe788bc550be214ef5e99ea9e6ac97f8 (diff) | |
download | rneovim-a9eeeec5d5a64a8f3a11f38319d70537f929e667.tar.gz rneovim-a9eeeec5d5a64a8f3a11f38319d70537f929e667.tar.bz2 rneovim-a9eeeec5d5a64a8f3a11f38319d70537f929e667.zip |
test: segfault test for empty buffer paste on term
Diffstat (limited to 'test/functional/terminal/buffer_spec.lua')
-rw-r--r-- | test/functional/terminal/buffer_spec.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/terminal/buffer_spec.lua b/test/functional/terminal/buffer_spec.lua index 209537831f..5d1e2618c1 100644 --- a/test/functional/terminal/buffer_spec.lua +++ b/test/functional/terminal/buffer_spec.lua @@ -258,6 +258,13 @@ describe(':terminal buffer', function() it('handles wqall', function() eq('Vim(wqall):E948: Job still running', exc_exec('wqall')) 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) describe('No heap-buffer-overflow when using', function() |