chore: resolve undefined-field

This commit is contained in:
Alexander Courtis
2024-10-26 15:16:09 +11:00
parent 5290897260
commit c883df94bf

View File

@@ -125,8 +125,9 @@ function M.fn(default_modifier)
return return
end end
if node:is(DirectoryNode) then local dir = node:as(DirectoryNode)
node = node:last_group_node() if dir then
node = dir:last_group_node()
end end
if node.name == ".." then if node.name == ".." then
return return