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
end
if node:is(DirectoryNode) then
node = node:last_group_node()
local dir = node:as(DirectoryNode)
if dir then
node = dir:last_group_node()
end
if node.name == ".." then
return