mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
fix(picker): nil
on :quit
. Closes #1107
This commit is contained in:
parent
bbac7ffda1
commit
1219f5e43b
1 changed files with 1 additions and 1 deletions
|
@ -161,7 +161,7 @@ end
|
|||
---@return string? name, snacks.win? win
|
||||
function M:current_win()
|
||||
local current = vim.api.nvim_get_current_win()
|
||||
for w, win in pairs(self.layout.wins) do
|
||||
for w, win in pairs(self.layout.wins or {}) do
|
||||
if win.win == current then
|
||||
return w, win
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue