mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(explorer): don't try to show when closed. Fixes #836
This commit is contained in:
parent
253b2a2d99
commit
6921cd06ac
1 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,10 @@ function State:show(path)
|
|||
return
|
||||
end
|
||||
local function show()
|
||||
local picker = self.picker()
|
||||
if not picker or picker.closed then
|
||||
return
|
||||
end
|
||||
for item, idx in picker:iter() do
|
||||
if item.file == path then
|
||||
picker.list:view(idx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue