Skip to content

Commit

Permalink
fix(ui): don't close on BufLeave. Fixes #561
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Feb 17, 2023
1 parent f2cc9ef commit 7339145
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 @@ -53,7 +53,7 @@ function M:init(opts)
}
self:mount()
self:on_key(ViewConfig.keys.close, self.close)
self:on({ "BufDelete", "BufLeave", "BufHidden" }, self.close, { once = true })
self:on({ "BufDelete", "BufHidden" }, self.close, { once = true })
return self
end

Expand Down

0 comments on commit 7339145

Please sign in to comment.