aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-01 19:02:38 -0500
committerGitHub <noreply@github.com>2020-12-01 19:02:38 -0500
commitd80f262f894bfc1d8a8ba79fdc5d1c14f738a140 (patch)
tree28bae2d0a935a9e0fdd13f19c1dbaaec294fc73e /src/nvim/ex_cmds.c
parent72c22862dc2199462aef0d450a49d29a9d0680b9 (diff)
parent518fe0e8a2de00ce6b7f62183dfa89b410378a89 (diff)
downloadrneovim-d80f262f894bfc1d8a8ba79fdc5d1c14f738a140.tar.gz
rneovim-d80f262f894bfc1d8a8ba79fdc5d1c14f738a140.tar.bz2
rneovim-d80f262f894bfc1d8a8ba79fdc5d1c14f738a140.zip
Merge pull request #13428 from janlazo/nvim-8.0.1525
vim-patch:8.0.{858,953,1525}
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index d2ccbe3e6d..b0a51eaefd 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -1965,7 +1965,12 @@ void do_wqall(exarg_T *eap)
}
FOR_ALL_BUFFERS(buf) {
- if (!bufIsChanged(buf) || bt_dontwrite(buf)) {
+ if (exiting
+ && buf->terminal
+ && channel_job_running((uint64_t)buf->b_p_channel)) {
+ no_write_message_nobang(buf);
+ error++;
+ } else if (!bufIsChanged(buf) || bt_dontwrite(buf)) {
continue;
}
/*