refactor(#2826): more consistency checking

This commit is contained in:
Alexander Courtis
2025-06-20 12:36:09 +10:00
parent d72f85f524
commit 4d6c42356a
6 changed files with 8 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ local running = {}
---@param path string relative or absolute
function M.fn(path)
local explorer = core.get_explorer()
if not explorer or not explorer.view:is_visible() then
if not explorer or not explorer.view:is_visible(nil, "finders/find-file.fn1") then
return
end
@@ -83,7 +83,7 @@ function M.fn(path)
end)
:iterate()
if found and explorer.view:is_visible() then
if found and explorer.view:is_visible(nil, "finders/find-file.fn2") then
explorer.renderer:draw()
explorer.view:set_cursor({ line, 0 })
end