From a6e8f888e7fc31b8ab7233509254fb2e2fe4089f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 14 Dec 2019 16:18:15 +0100 Subject: 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 #5361) --- src/ex_cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ex_cmds.c') diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 45c733bbae..4910491944 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -2742,7 +2742,7 @@ do_ecmd( // oldwin->w_buffer to NULL. u_sync(FALSE); close_buffer(oldwin, curbuf, - (flags & ECMD_HIDE) ? 0 : DOBUF_UNLOAD, FALSE); + (flags & ECMD_HIDE) ? 0 : DOBUF_UNLOAD, FALSE, FALSE); the_curwin->w_closing = FALSE; --buf->b_locked; -- cgit v1.2.3