fix(win): when fixbuf triggers in a floating window, just close it. Closes #2380

This commit is contained in:
Folke Lemaitre 2025-10-29 15:15:57 +01:00
parent 66e3dc4619
commit de352425f7
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -908,6 +908,13 @@ function M:fixbuf()
return
end
if vim.api.nvim_win_get_config(self.win).zindex then
vim.schedule(function()
self:close()
end)
return
end
-- another buffer was opened in this window
-- find another window to swap with
local main ---@type number?