nvim-cokeline
nvim-cokeline copied to clipboard
Error `E937` displayed when closing `fugitive-summary` buffer with `focus_on_delete` set to `prev` or `next`
Error E937: Attempt to delete a buffer that is in use is shown when trying to close fugitive-summary with buffers.focus_on_delete set to prev or next:
Error detected while processing BufDelete Autocommands for "*":
E5108: Error executing lua ...sers\user\.vim-plug\cokeline.nvim/lua/cokeline/augroups.lua:15: Vim(buffer):E937: Attempt to delete a buffer that is in use
stack traceback:
[C]: in function 'cmd'
...sers\user\.vim-plug\cokeline.nvim/lua/cokeline/augroups.lua:15: in function 'close_bufnr'
[string ":lua"]:1: in main chunk
Steps to reproduce:
- Set
buffers.focus_on_deletetoprevornext:
require('cokeline').setup {
buffers = {
focus_on_delete = 'prev',
},
}
- Run
:Gitin a git repository to openfugitive-summary - Close buffer with
:bdelete - Notice exception is thrown (see above)