diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-03-10 20:59:13 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-01 08:52:33 -0500 |
commit | 56f5e3bd6b9ea522f8099eb6f602490144f3c64a (patch) | |
tree | 60fecf042baf13d10316c5c3aa0b940d32b1bf0a /test/functional/terminal/buffer_spec.lua | |
parent | 11249ad0216c6dac1ba20558038d0fb75add0495 (diff) | |
download | rneovim-56f5e3bd6b9ea522f8099eb6f602490144f3c64a.tar.gz rneovim-56f5e3bd6b9ea522f8099eb6f602490144f3c64a.tar.bz2 rneovim-56f5e3bd6b9ea522f8099eb6f602490144f3c64a.zip |
vim-patch:8.0.1525: using :wqa exits even if a job runs in a terminal window
Problem: Using :wqa exits even if a job runs in a terminal window. (Jason
Felice)
Solution: Check if a terminal has a running job. (closes vim/vim#2654)
https://github.com/vim/vim/commit/7a76092a51fc5446426a4bfd9eb6503ec61bf9e9
Diffstat (limited to 'test/functional/terminal/buffer_spec.lua')
-rw-r--r-- | test/functional/terminal/buffer_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/terminal/buffer_spec.lua b/test/functional/terminal/buffer_spec.lua index 8e171d31aa..209537831f 100644 --- a/test/functional/terminal/buffer_spec.lua +++ b/test/functional/terminal/buffer_spec.lua @@ -6,6 +6,7 @@ local eval, feed_command, source = helpers.eval, helpers.feed_command, helpers.s local eq, neq = helpers.eq, helpers.neq local write_file = helpers.write_file local command= helpers.command +local exc_exec = helpers.exc_exec describe(':terminal buffer', function() local screen @@ -253,6 +254,10 @@ describe(':terminal buffer', function() ]]) command('bdelete!') end) + + it('handles wqall', function() + eq('Vim(wqall):E948: Job still running', exc_exec('wqall')) + end) end) describe('No heap-buffer-overflow when using', function() |