refactor(#2826): more consistency checking
This commit is contained in:
@@ -25,7 +25,7 @@ function M.fn(opts)
|
||||
|
||||
local explorer = core.get_explorer()
|
||||
|
||||
if explorer and explorer.view:is_visible() then
|
||||
if explorer and explorer.view:is_visible(nil, "open.fn") then
|
||||
-- focus
|
||||
lib.set_target_win()
|
||||
explorer.view:focus()
|
||||
|
||||
Reference in New Issue
Block a user