allow opening symlink to folders

This commit is contained in:
kiyan
2020-12-13 17:13:35 +01:00
parent 033b465f34
commit 0862bcc08e
7 changed files with 24 additions and 12 deletions

View File

@@ -95,10 +95,8 @@ function M.on_keypress(mode)
return
end
if node.link_to then
if node.link_to and not node.entries then
local stat = luv.fs_stat(node.link_to)
-- TODO: potentially CD here
if stat.type == 'directory' then return end
lib.open_file(mode, node.link_to)
elseif node.entries ~= nil then
lib.unroll_dir(node)