diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-28 22:20:56 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-28 22:22:59 -0400 |
commit | 805d6e450a9e658ff7e1d254210983f5667558f7 (patch) | |
tree | 4bb77a839fae52b7090e78ef193b0678daf709ee /src | |
parent | c696fcdcaa99e8d9114cd9713f73c4cb241d0dd8 (diff) | |
download | rneovim-805d6e450a9e658ff7e1d254210983f5667558f7.tar.gz rneovim-805d6e450a9e658ff7e1d254210983f5667558f7.tar.bz2 rneovim-805d6e450a9e658ff7e1d254210983f5667558f7.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/ex_cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } /* |