0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

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 #2190)
This commit is contained in:
Bram Moolenaar
2017-10-15 22:42:23 +02:00
parent 44cc4cf72f
commit 059db5c29f
3 changed files with 12 additions and 1 deletions

View File

@@ -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: