diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-08 10:23:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-08 10:23:55 +0800 |
commit | 4c9a71c69e60ea6dd4794d1c8ce478f5aa1b3f4d (patch) | |
tree | 0ab212cfd54d1a24000d31a62ed880db257ed747 /src/nvim/ex_cmds.c | |
parent | 65a5cea0d32a006c996cce08b4a25716e0836c57 (diff) | |
parent | 191f009ab74111bab6e60ffc1dac5484196b7a6b (diff) | |
download | rneovim-4c9a71c69e60ea6dd4794d1c8ce478f5aa1b3f4d.tar.gz rneovim-4c9a71c69e60ea6dd4794d1c8ce478f5aa1b3f4d.tar.bz2 rneovim-4c9a71c69e60ea6dd4794d1c8ce478f5aa1b3f4d.zip |
Merge pull request #18031 from zeertzjq/vim-8.2.0004
vim-patch:8.2.{0004,4700,4706}: buffer closing is interrupted
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 5d5b342c35..4e98319723 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -2527,9 +2527,9 @@ int do_ecmd(int fnum, char_u *ffname, char_u *sfname, exarg_T *eap, linenr_T new // Close the link to the current buffer. This will set // oldwin->w_buffer to NULL. u_sync(false); - const bool did_decrement = close_buffer(oldwin, curbuf, - (flags & ECMD_HIDE) || curbuf->terminal ? 0 : DOBUF_UNLOAD, - false); + const bool did_decrement + = close_buffer(oldwin, curbuf, (flags & ECMD_HIDE) || curbuf->terminal ? 0 : DOBUF_UNLOAD, + false, false); // Autocommands may have closed the window. if (win_valid(the_curwin)) { |