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/quickfix.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/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 1d589e8ca0..4ad5e40fee 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -1721,7 +1721,7 @@ static void wipe_qf_buffer(qf_info_T *qi) if (qfbuf != NULL && qfbuf->b_nwindows == 0) { // If the quickfix buffer is not loaded in any window, then // wipe the buffer. - close_buffer(NULL, qfbuf, DOBUF_WIPE, false); + close_buffer(NULL, qfbuf, DOBUF_WIPE, false, false); qi->qf_bufnr = INVALID_QFBUFNR; } } @@ -5843,7 +5843,7 @@ static void wipe_dummy_buffer(buf_T *buf, char_u *dirname_start) static void unload_dummy_buffer(buf_T *buf, char_u *dirname_start) { if (curbuf != buf) { // safety check - close_buffer(NULL, buf, DOBUF_UNLOAD, false); + close_buffer(NULL, buf, DOBUF_UNLOAD, false, true); // When autocommands/'autochdir' option changed directory: go back. restore_start_dir(dirname_start); |