feat: Option for grouping empty directories (#247)

This commit is contained in:
Sindre T. Strøm
2021-03-26 19:24:03 +01:00
committed by GitHub
parent e0b9882a8a
commit 709d6b968b
7 changed files with 94 additions and 12 deletions

View File

@@ -95,7 +95,7 @@ function M.on_keypress(mode)
if node.name == ".." then
return lib.change_dir("..")
elseif mode == "cd" and node.entries ~= nil then
return lib.change_dir(node.absolute_path)
return lib.change_dir(lib.get_last_group_node(node).absolute_path)
elseif mode == "cd" then
return
end