preview.nvim/lua
Barrett Ruth b1fe5597c6
fix(compiler): replace BufWipeout with BufUnload
Problem: cleanup autocmds used BufWipeout, which only fires for
:bwipeout. The common :bdelete path (used by most buffer managers
and nvim_buf_delete) fires BufUnload but not BufWipeout, so processes
and watches leaked on normal buffer deletion.

Solution: switch all three cleanup autocmds from BufWipeout to
BufUnload, which fires for both :bdelete and :bwipeout.
2026-03-04 13:49:09 -05:00
..
preview fix(compiler): replace BufWipeout with BufUnload 2026-03-04 13:49:09 -05:00