comparison src/ex_cmds.c @ 18886:050f5eaa9e50 v8.2.0004

patch 8.2.0004: get E685 and E931 if buffer reload is interrupted Commit: https://github.com/vim/vim/commit/a6e8f888e7fc31b8ab7233509254fb2e2fe4089f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 14 16:18:15 2019 +0100 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 https://github.com/vim/vim/issues/5361)
author Bram Moolenaar <Bram@vim.org>
date Sat, 14 Dec 2019 16:30:04 +0100
parents 8f05b3cf8557
children 5bef1043abff
comparison
equal deleted inserted replaced
18885:f4852c310de1 18886:050f5eaa9e50
2740 2740
2741 // Close the link to the current buffer. This will set 2741 // Close the link to the current buffer. This will set
2742 // oldwin->w_buffer to NULL. 2742 // oldwin->w_buffer to NULL.
2743 u_sync(FALSE); 2743 u_sync(FALSE);
2744 close_buffer(oldwin, curbuf, 2744 close_buffer(oldwin, curbuf,
2745 (flags & ECMD_HIDE) ? 0 : DOBUF_UNLOAD, FALSE); 2745 (flags & ECMD_HIDE) ? 0 : DOBUF_UNLOAD, FALSE, FALSE);
2746 2746
2747 the_curwin->w_closing = FALSE; 2747 the_curwin->w_closing = FALSE;
2748 --buf->b_locked; 2748 --buf->b_locked;
2749 2749
2750 #ifdef FEAT_EVAL 2750 #ifdef FEAT_EVAL