Closed 03juan closed 1 year ago
The close events are cleared correctly both when toggling and quitting:
Possibly needs documentation changes to README?
I agree about the documentation, this is an implementation detail.
Thanks for the contribution!
Creates default
BufWinLeave
autocmd and appends customoption.event
if it differs from the default.Fails silently using
pcall
if the other event already deleted theautocmd
from line 192.Closes #502
Tested with "print debugs"
[x] Closing with![image](https://github.com/romgrk/barbar.nvim/assets/4416345/dbdc7e68-666e-4f02-a339-2820b600c857)
:q
[x] Toggling![image](https://github.com/romgrk/barbar.nvim/assets/4416345/b277a141-fcda-4eb3-8743-95397794ca23)