Skip to content

Commit d60773e

Browse files
authored
Set target window whenever we open "open" a visible tree (#1080)
1 parent a50fd77 commit d60773e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/nvim-tree.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ end
4141
function M.open(cwd)
4242
cwd = cwd ~= "" and cwd or nil
4343
if view.is_visible() then
44+
lib.set_target_win()
4445
view.focus()
4546
else
4647
lib.open(cwd)

0 commit comments

Comments
 (0)