Skip to content

Commit f3ac4a9

Browse files
committed
fix: Handle correctly recursive traversals when deep strategy used
1 parent df45216 commit f3ac4a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/neo-tree/sources/filesystem/lib/fs_scan.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ local function scan_dir_sync(context, path)
190190
if
191191
grandchild_nodes == nil
192192
or #grandchild_nodes == 0
193-
or #grandchild_nodes == 1 and grandchild_nodes[1].type == "directory"
193+
or (#grandchild_nodes == 1 and grandchild_nodes[1].type == "directory")
194+
or context.recursive
194195
then
195196
scan_dir_sync(context, child.path)
196197
end

0 commit comments

Comments
 (0)