Closed QMonkey closed 6 years ago
Thanks for reporting! I've seen this too. Should really investigate. :)
I presume this is related, but if I try to close a buffer from :Gblame
I also see:
Error detected while processing function <SNR>48_bdelete:
line 45:
E516: No buffers were deleted: bdelete 7
Press ENTER or type command to continue
After pressing Enter the buffer closes as expected
The problem seems to happen when you try to close a buffer with:
setlocal bufhidden=delete
With this config, the buffer is deleted from the buffer list, but it continues "existing" and the bufexist
function here: https://github.com/moll/vim-bbye/blob/903f5eb17f72ebf7b0b1524bbb792c0b36761af6/plugin/bbye.vim#L48 returns true, but the bdelete
can't delete an already unlisted buffer, so, I guess that changing the bufexists
to buflisted
could fix this problem.
Thank you all for your help! I've switched bufexists()
to buflisted()
to counter bufhidden=delete
. I guess the plugins I tested originally all used bufhidden=wipe
so I didn't think how deleting a deleted buffer would work. :)
When I use Bdelete command to delete fugitive's Glog buffer, the buffer is successfully deleted, but I get the error below.
The buffer number of Glog is 6..