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 721e3cd commit 01d45eeCopy full SHA for 01d45ee
1 file changed
lua/nvim-tree/node/directory.lua
@@ -296,14 +296,14 @@ end
296
---@return fun(expansion_count: integer, node: Node): boolean
297
function DirectoryNode:limit_folder_discovery(should_descend)
298
local MAX_FOLDER_DISCOVERY = self.explorer.opts.actions.expand_all.max_folder_discovery
299
- return function(expansion_count)
+ return function(expansion_count, node)
300
local should_halt = expansion_count >= MAX_FOLDER_DISCOVERY
301
if should_halt then
302
notify.warn("expansion iteration was halted after " .. MAX_FOLDER_DISCOVERY .. " discovered folders")
303
return false
304
end
305
306
- return should_descend(expansion_count, self)
+ return should_descend(expansion_count, node)
307
308
309
0 commit comments