Skip to content

Commit

Permalink
fix(ui): properly cleanup on :quit. Fixes #1385
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Mar 26, 2024
1 parent 107719d commit 79e2e85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/view/float.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function M:init(opts)
}
self:mount()
self:on_key(ViewConfig.keys.close, self.close)
self:on({ "BufDelete", "BufHidden" }, self.close, { once = false })
self:on({ "WinLeave", "BufDelete", "BufHidden" }, self.close, { once = false })
return self
end

Expand Down

0 comments on commit 79e2e85

Please sign in to comment.