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 f1f89f2 commit cf90837Copy full SHA for cf90837
lua/nvim-tree/actions/tree-modifiers/collapse-all.lua
@@ -31,7 +31,9 @@ function M.fn(keep_buffers)
31
Iterator.builder(core.get_explorer().nodes)
32
:hidden()
33
:applier(function(node)
34
- node.open = keep_buffers == true and matches(node.absolute_path)
+ if node.nodes ~= nil then
35
+ node.open = keep_buffers == true and matches(node.absolute_path)
36
+ end
37
end)
38
:recursor(function(n)
39
return n.nodes
0 commit comments