fix(win): fixed fixbuf. Closes #2409

This commit is contained in:
Folke Lemaitre 2025-11-02 16:35:39 +01:00
parent b80b330091
commit 2099572fe8
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -889,6 +889,10 @@ function M:fixbuf()
return true
end
if not self:buf_valid() then
return
end
if not self:on_current_tab() then
return
end
@ -908,13 +912,6 @@ 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?