mirror of
https://github.com/folke/snacks.nvim
synced 2025-12-23 08:47:57 +00:00
fix(main): get correct winid for prev window
This commit is contained in:
parent
5d9dacd098
commit
db399b1332
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue