aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memory.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-07 21:46:07 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-04-08 08:54:07 +0800
commit44b59d1a696b35d2520dbea2de3aab01e740a7ca (patch)
treeaaaf5fc54edfdb48fe0fbb3fed400a7d9864bc65 /src/nvim/memory.c
parent8f3245dbfa91d384215c78da32e4d1739c8a1f34 (diff)
downloadrneovim-44b59d1a696b35d2520dbea2de3aab01e740a7ca.tar.gz
rneovim-44b59d1a696b35d2520dbea2de3aab01e740a7ca.tar.bz2
rneovim-44b59d1a696b35d2520dbea2de3aab01e740a7ca.zip
vim-patch:8.2.0004: get E685 and E931 if buffer reload is interrupted
Problem: Get E685 and E931 if buffer reload is interrupted. Solution: Do not abort deleting a dummy buffer. (closes vim/vim#5361) https://github.com/vim/vim/commit/a6e8f888e7fc31b8ab7233509254fb2e2fe4089f
Diffstat (limited to 'src/nvim/memory.c')
-rw-r--r--src/nvim/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/memory.c b/src/nvim/memory.c
index 6cdc4f1fde..c895cc1ec6 100644
--- a/src/nvim/memory.c
+++ b/src/nvim/memory.c
@@ -691,7 +691,7 @@ void free_all_mem(void)
bufref_T bufref;
set_bufref(&bufref, buf);
nextbuf = buf->b_next;
- close_buffer(NULL, buf, DOBUF_WIPE, false);
+ close_buffer(NULL, buf, DOBUF_WIPE, false, false);
// Didn't work, try next one.
buf = bufref_valid(&bufref) ? nextbuf : firstbuf;
}