fix(explorer): don't try to show when closed. Fixes #836

This commit is contained in:
Folke Lemaitre 2025-01-31 20:22:04 +01:00
parent 253b2a2d99
commit 6921cd06ac
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -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)