summaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-10-15 22:42:23 +0200
committerBram Moolenaar <Bram@vim.org>2017-10-15 22:42:23 +0200
commit059db5c29ffef283a4b90bab9228708fa32e3dd2 (patch)
treed4f99d4adfd04a43311d54baae75f8a803519a34 /src/ex_cmds.c
parent44cc4cf72fdd12cd9a779031d443aac4254d51ae (diff)
downloadvim-git-059db5c29ffef283a4b90bab9228708fa32e3dd2.tar.gz
patch 8.0.1202: :wall gives an errof for a terminal windowv8.0.1202
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 #2190)
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index b4351b23d..60f47bbd2 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -3400,7 +3400,7 @@ do_wqall(exarg_T *eap)
FOR_ALL_BUFFERS(buf)
{
- if (bufIsChanged(buf))
+ if (bufIsChanged(buf) && !bt_dontwrite(buf))
{
/*
* Check if there is a reason the buffer cannot be written: