Skip to content

Commit c7cbbad

Browse files
committed
fix: wait until buffer wipeout to clean up data (#476)
1 parent 6ab1a0c commit c7cbbad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/aerial/autocommands.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ M.attach_autocommands = function(bufnr)
142142
window.update_position(0, 0)
143143
end,
144144
})
145-
vim.api.nvim_create_autocmd("BufUnload", {
145+
vim.api.nvim_create_autocmd("BufWipeout", {
146146
desc = "Aerial clean up stored data",
147147
buffer = bufnr,
148148
group = group,

0 commit comments

Comments
 (0)