Set target window whenever we open "open" a visible tree (#1080)

This commit is contained in:
Maximiliano Curia
2022-03-18 11:31:39 +01:00
committed by GitHub
parent a50fd77c99
commit d60773e441

View File

@@ -41,6 +41,7 @@ end
function M.open(cwd)
cwd = cwd ~= "" and cwd or nil
if view.is_visible() then
lib.set_target_win()
view.focus()
else
lib.open(cwd)