comparison src/ex_cmds.c @ 13302:b5806be0b36d v8.0.1525

patch 8.0.1525: using :wqa exits even if a job runs in a terminal window commit https://github.com/vim/vim/commit/7a76092a51fc5446426a4bfd9eb6503ec61bf9e9 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 19 23:10:02 2018 +0100 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)
author Christian Brabandt <cb@256bit.org>
date Mon, 19 Feb 2018 23:15:05 +0100
parents 6958e700a458
children 81c348d40312
comparison
equal deleted inserted replaced
13301:466abccbe41d 13302:b5806be0b36d
3426 if (eap->cmdidx == CMD_xall || eap->cmdidx == CMD_wqall) 3426 if (eap->cmdidx == CMD_xall || eap->cmdidx == CMD_wqall)
3427 exiting = TRUE; 3427 exiting = TRUE;
3428 3428
3429 FOR_ALL_BUFFERS(buf) 3429 FOR_ALL_BUFFERS(buf)
3430 { 3430 {
3431 #ifdef FEAT_TERMINAL
3432 if (exiting && term_job_running(buf->b_term))
3433 {
3434 no_write_message_nobang(buf);
3435 ++error;
3436 }
3437 else
3438 #endif
3431 if (bufIsChanged(buf) && !bt_dontwrite(buf)) 3439 if (bufIsChanged(buf) && !bt_dontwrite(buf))
3432 { 3440 {
3433 /* 3441 /*
3434 * Check if there is a reason the buffer cannot be written: 3442 * Check if there is a reason the buffer cannot be written:
3435 * 1. if the 'write' option is set 3443 * 1. if the 'write' option is set