fix(main): get correct winid for prev window

This commit is contained in:
Folke Lemaitre 2025-09-30 13:38:10 +02:00
parent 5d9dacd098
commit db399b1332
No known key found for this signature in database
GPG key ID: 9B52594D560070AB

View file

@ -40,7 +40,7 @@ function M:find()
if self.opts.current then
return current
end
local prev = vim.fn.winnr("#")
local prev = vim.fn.win_getid(vim.fn.winnr("#"))
local non_float = 0
local wins = { self.win, current, prev }
local all = vim.api.nvim_tabpage_list_wins(0)