hotfix dir up

This commit is contained in:
kiyan 2021-05-19 23:27:26 +02:00
parent 825cf570bf
commit 4706b74938

View File

@ -382,7 +382,7 @@ function M.toggle_dotfiles()
end
function M.dir_up(node)
if not node then
if not node or node.name == ".." then
return M.change_dir('..')
else
local newdir = vim.fn.fnamemodify(M.Tree.cwd, ':h')