chore: resolve undefined-field

This commit is contained in:
Alexander Courtis 2024-10-26 15:17:55 +11:00
parent c883df94bf
commit aa161a0599

View File

@ -46,7 +46,8 @@ function M.fn(keep_buffers)
end
end)
:recursor(function(n)
return n.group_next and { n.group_next } or n.nodes
n = n and n:as(DirectoryNode)
return n and (n.group_next and { n.group_next } or n.nodes)
end)
:iterate()