mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(win): when fixbuf triggers in a floating window, just close it. Closes #2380
This commit is contained in:
parent
66e3dc4619
commit
de352425f7
1 changed files with 7 additions and 0 deletions
|
|
@ -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?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue