Skip to content

Conversation

@parmort
Copy link
Contributor

@parmort parmort commented Jan 3, 2026

I noticed :Reconcile never clears its autocommands, even after closing the quickfix window (as described in the docs). After some digging, the following events are not triggered when the quickfix window closes (with :cclose or :q):

  • BufWipeout
  • BufDelete
  • BufUnload

The code here used BufWipeout, which would never trigger. The WinClosed event does fire when closing the quickfix window (both with :cclose and :q), so the teardown function for :Reconcile is triggered. Tested working on vim 9.1 and neovim 0.12.

@alerque alerque merged commit c9c5f6a into ledger:master Jan 3, 2026
5 checks passed
@alerque
Copy link
Member

alerque commented Jan 3, 2026

Thanks for taking the time to contribute (especially to feature surface area I don't personally use)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants