chore: cleanup change dir module

This commit is contained in:
kiyan
2022-07-03 12:41:13 +02:00
parent 736cc843e1
commit 19dcacf06e
2 changed files with 45 additions and 17 deletions

View File

@@ -400,7 +400,7 @@ function M._prevent_buffer_override()
vim.cmd "setlocal nowinfixheight"
M.open { focus_tree = false }
require("nvim-tree.renderer").draw()
a.nvim_win_close(curwin, { force = true })
pcall(a.nvim_win_close, curwin, { force = true })
require("nvim-tree.actions.open-file").fn("edit", bufname)
end)
end