From 805d6e450a9e658ff7e1d254210983f5667558f7 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Fri, 28 Jun 2019 22:20:56 -0400 Subject: [PATCH] vim-patch:8.0.1202: :wall gives an errof for a terminal window Problem: :wall gives an errof for a terminal window. (Marius Gedminas) Solution: Don't try writing a buffer that can't be written. (Yasuhiro Matsumoto, closes vim/vim#2190) https://github.com/vim/vim/commit/059db5c29ffef283a4b90bab9228708fa32e3dd2 --- src/nvim/ex_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 17b66fd32c..df455399c4 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1939,7 +1939,7 @@ void do_wqall(exarg_T *eap) } FOR_ALL_BUFFERS(buf) { - if (!bufIsChanged(buf)) { + if (!bufIsChanged(buf) || bt_dontwrite(buf)) { continue; } /*