Skip to content

Commit 28c4bb0

Browse files
committed
fix: close view before hijacking current window
1 parent 19dcacf commit 28c4bb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/nvim-tree/lib.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ function M.open(cwd)
9898
core.init(cwd or vim.loop.cwd())
9999
end
100100
if should_hijack_current_buf() then
101+
view.close()
101102
view.open_in_current_win()
102103
renderer.draw()
103104
else

0 commit comments

Comments
 (0)