Skip to content

Commit 591f5d4

Browse files
committed
fix: remove buffer when replacing window
1 parent 506d2e7 commit 591f5d4

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
@@ -309,6 +309,7 @@ function M.open_on_directory()
309309
view.close()
310310
end
311311
M.hijack_current_window()
312+
vim.api.nvim_buf_delete(buf, { force = true })
312313
lib.change_dir(bufname)
313314
lib.set_index_and_redraw(bufname)
314315
view.focus()

0 commit comments

Comments
 (0)