0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

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 #2654)
This commit is contained in:
Bram Moolenaar
2018-02-19 23:10:02 +01:00
parent 9c8816bd30
commit 7a76092a51
6 changed files with 23 additions and 4 deletions

View File

@@ -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))
{
/*