fix(#1833): do not find file when view is not visible on the current tab (#1845)

This commit is contained in:
Alexander Courtis 2022-12-23 12:47:39 +11:00 committed by GitHub
parent fee6801393
commit 9e4c39572f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ local running = {}
---Find a path in the tree, expand it and focus it
---@param fname string full path
function M.fn(fname)
if not core.get_explorer() then
if not core.get_explorer() or not view.is_visible() then
return
end