Skip to content

Commit info window is not closed properly when leaving window view #65

@leiswatch

Description

@leiswatch

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions