forked from aniani/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 #2654)
This commit is contained in:
@@ -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))
|
||||
{
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user