diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-06-23 22:46:02 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-06-23 23:16:20 -0400 |
commit | cd4b649136b9c4529a6f2f9043ad0c7335126d71 (patch) | |
tree | 64c562815ab6c9e90b57ae78df3850bcd5a2c73e /src/nvim/ex_cmds.c | |
parent | 4cb0bf09421e88adb812bb716b56af22bd51353e (diff) | |
download | rneovim-cd4b649136b9c4529a6f2f9043ad0c7335126d71.tar.gz rneovim-cd4b649136b9c4529a6f2f9043ad0c7335126d71.tar.bz2 rneovim-cd4b649136b9c4529a6f2f9043ad0c7335126d71.zip |
vim-patch:8.2.2185: BufUnload is not triggered for the quickfix dummy buffer
Problem: BufUnload is not triggered for the quickfix dummy buffer.
Solution: Do trigger BufUnload. (Pontus Leitzler,closes vim/vim#7518, closes vim/vim#7517)
Fix white space around "=".
https://github.com/vim/vim/commit/1cfb9bb5c06c07f14475f39c4eb57fea1f0dfb69
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 6a0a08eee8..23383abc57 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -4773,8 +4773,9 @@ void ex_help(exarg_T *eap) * window. */ if (empty_fnum != 0 && curbuf->b_fnum != empty_fnum) { buf = buflist_findnr(empty_fnum); - if (buf != NULL && buf->b_nwindows == 0) - wipe_buffer(buf, TRUE); + if (buf != NULL && buf->b_nwindows == 0) { + wipe_buffer(buf, true); + } } /* keep the previous alternate file */ |