mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(win): fixed fixbuf. Closes #2409
This commit is contained in:
parent
b80b330091
commit
2099572fe8
1 changed files with 4 additions and 7 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue