fix: update to buf directory implementation

This commit is contained in:
kiyan
2021-10-01 14:04:07 +02:00
parent 1b04082872
commit 1fe211eda0
2 changed files with 11 additions and 7 deletions

View File

@@ -300,7 +300,9 @@ function M.close()
vim.cmd "new"
end
end
a.nvim_win_hide(M.get_winnr())
if #a.nvim_list_wins() > 1 then
a.nvim_win_hide(M.get_winnr())
end
end
--- Returns the window number for nvim-tree within the tabpage specified