mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
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)
a6e8f888e7
This commit is contained in:
@@ -6544,7 +6544,7 @@ static int open_cmdwin(void)
|
||||
// win_close() may have already wiped the buffer when 'bh' is
|
||||
// set to 'wipe', autocommands may have closed other windows
|
||||
if (bufref_valid(&bufref) && bufref.br_buf != curbuf) {
|
||||
close_buffer(NULL, bufref.br_buf, DOBUF_WIPE, false);
|
||||
close_buffer(NULL, bufref.br_buf, DOBUF_WIPE, false, false);
|
||||
}
|
||||
|
||||
// Restore window sizes.
|
||||
|
Reference in New Issue
Block a user