mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
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 vim/vim#2654)
7a76092a51
This commit is contained in:
@@ -1645,10 +1645,11 @@ void no_write_message(void)
|
||||
}
|
||||
}
|
||||
|
||||
void no_write_message_nobang(void)
|
||||
void no_write_message_nobang(const buf_T *const buf)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
if (curbuf->terminal
|
||||
&& channel_job_running((uint64_t)curbuf->b_p_channel)) {
|
||||
if (buf->terminal
|
||||
&& channel_job_running((uint64_t)buf->b_p_channel)) {
|
||||
EMSG(_("E948: Job still running"));
|
||||
} else {
|
||||
EMSG(_("E37: No write since last change"));
|
||||
|
Reference in New Issue
Block a user