Skip to content

Commit b853e10

Browse files
committed
Revert "fix: remove buffer when its empty when hijacking"
This reverts commit 0babcb4.
1 parent ea38eaa commit b853e10

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lua/nvim-tree.lua

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,6 @@ function M.open_on_directory()
302302
local buf = api.nvim_get_current_buf()
303303
local bufname = api.nvim_buf_get_name(buf)
304304
if vim.fn.isdirectory(bufname) ~= 1 then
305-
if bufname == "" then
306-
vim.schedule(function()
307-
vim.api.nvim_buf_delete(buf, { force = true })
308-
end)
309-
end
310305
return
311306
end
312307

0 commit comments

Comments
 (0)