mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
fixup! vim-patch:8.0.0858: check if job terminal is running #10908
This commit is contained in:
@@ -1503,7 +1503,9 @@ bool check_changed_any(bool hidden, bool unload)
|
||||
msg_col = 0;
|
||||
msg_didout = false;
|
||||
}
|
||||
if (EMSG2(_("E162: No write since last change for buffer \"%s\""),
|
||||
if ((buf->terminal && channel_job_running((uint64_t)buf->b_p_channel))
|
||||
? EMSG2(_("E947: Job still running in buffer \"%s\""), buf->b_fname)
|
||||
: EMSG2(_("E162: No write since last change for buffer \"%s\""),
|
||||
buf_spname(buf) != NULL ? buf_spname(buf) : buf->b_fname)) {
|
||||
save = no_wait_return;
|
||||
no_wait_return = false;
|
||||
|
Reference in New Issue
Block a user