We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3595418 commit 558d90dCopy full SHA for 558d90d
lua/nvim-tree/actions/tree/modifiers/expand-all.lua
@@ -60,7 +60,8 @@ local function gen_iterator()
60
end
61
end)
62
:recursor(function(node)
63
- return expansion_count < M.MAX_FOLDER_DISCOVERY and (node.group_next and { node.group_next } or (node.open and node.nodes))
+ node = node and node:as(DirectoryNode)
64
+ return expansion_count < M.MAX_FOLDER_DISCOVERY and node and (node.group_next and { node.group_next } or (node.open and node.nodes))
65
66
:iterate()
67
0 commit comments