From 56f5e3bd6b9ea522f8099eb6f602490144f3c64a Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 10 Mar 2020 20:59:13 -0400 Subject: 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 --- test/functional/terminal/buffer_spec.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/functional/terminal') 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() -- cgit From 518fe0e8a2de00ce6b7f62183dfa89b410378a89 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 1 Dec 2020 02:10:09 -0500 Subject: test/wildmode_spec: override $PS1 User config may set $PS1 for a colored prompt. It breaks the screen tests. --- test/functional/terminal/scrollback_spec.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'test/functional/terminal') diff --git a/test/functional/terminal/scrollback_spec.lua b/test/functional/terminal/scrollback_spec.lua index 77fdba7fc4..b932c58430 100644 --- a/test/functional/terminal/scrollback_spec.lua +++ b/test/functional/terminal/scrollback_spec.lua @@ -410,6 +410,7 @@ describe("'scrollback' option", function() command([[let $PROMPT='$$']]) screen = thelpers.screen_setup(nil, "['cmd.exe']", 30) else + command('let $PS1 = "$"') screen = thelpers.screen_setup(nil, "['sh']", 30) end -- cgit