diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-07 21:46:07 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-04-08 08:54:07 +0800 |
commit | 44b59d1a696b35d2520dbea2de3aab01e740a7ca (patch) | |
tree | aaaf5fc54edfdb48fe0fbb3fed400a7d9864bc65 /src/nvim/ex_getln.c | |
parent | 8f3245dbfa91d384215c78da32e4d1739c8a1f34 (diff) | |
download | rneovim-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/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 9104a2dd5a..dd6e4630d2 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -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. |