0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -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

@@ -1875,10 +1875,10 @@ no_write_message(void)
}
void
no_write_message_nobang(void)
no_write_message_nobang(buf_T *buf UNUSED)
{
#ifdef FEAT_TERMINAL
if (term_job_running(curbuf->b_term))
if (term_job_running(buf->b_term))
EMSG(_("E948: Job still running"));
else
#endif