Set target window whenever we open "open" a visible tree (#1080)
This commit is contained in:
committed by
GitHub
parent
a50fd77c99
commit
d60773e441
@@ -41,6 +41,7 @@ end
|
|||||||
function M.open(cwd)
|
function M.open(cwd)
|
||||||
cwd = cwd ~= "" and cwd or nil
|
cwd = cwd ~= "" and cwd or nil
|
||||||
if view.is_visible() then
|
if view.is_visible() then
|
||||||
|
lib.set_target_win()
|
||||||
view.focus()
|
view.focus()
|
||||||
else
|
else
|
||||||
lib.open(cwd)
|
lib.open(cwd)
|
||||||
|
|||||||
Reference in New Issue
Block a user