diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-02-19 23:10:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-02-19 23:10:02 +0100 |
commit | 7a76092a51fc5446426a4bfd9eb6503ec61bf9e9 (patch) | |
tree | 8611ab3fbe9f232764ad5a9dc944c0c8aed807e3 /src/ex_cmds.c | |
parent | 9c8816bd306a003c2ac3dce161be3fef481c9902 (diff) | |
download | vim-git-7a76092a51fc5446426a4bfd9eb6503ec61bf9e9.tar.gz |
patch 8.0.1525: using :wqa exits even if a job runs in a terminal windowv8.0.1525
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 #2654)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index a4d6221b0..e05215a59 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -3428,6 +3428,14 @@ do_wqall(exarg_T *eap) FOR_ALL_BUFFERS(buf) { +#ifdef FEAT_TERMINAL + if (exiting && term_job_running(buf->b_term)) + { + no_write_message_nobang(buf); + ++error; + } + else +#endif if (bufIsChanged(buf) && !bt_dontwrite(buf)) { /* |