Steps to reproduce:
- Use default config
- Run BlameToggle
- Hit
i on one of the commits to open commit info window
- Run BlameToggle again
The commit info window stays opened and cannot be closed.
I have identified that the issue lies in the window_view.lua file. function WindowView:close clears the augroup too quickly. Moving it further down the function, like this
vim.api.nvim_exec_autocmds(
"User",
{ pattern = "BlameViewClosed", modeline = false, data = "window" }
)
vim.api.nvim_del_augroup_by_name("NvimBlame")
seems to solve the issue.
Please fix. 🙏 And thanks for the great plugin!