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/buffer.c | |
parent | 9c8816bd306a003c2ac3dce161be3fef481c9902 (diff) |
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/buffer.c')
-rw-r--r-- | src/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index c3e0c50801..a3a7e00c47 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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 |