Skip to content

Commit b13425d

Browse files
committed
fix: use correct indent on lazy loaded folders when root hiddden, fixes #510
1 parent 5f4783c commit b13425d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/neo-tree/ui/renderer.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,8 +1021,10 @@ M.show_nodes = function(sourceItems, state, parentId, callback)
10211021
end
10221022

10231023
local config = require("neo-tree").config
1024-
if config.hide_root_node and not parentId then
1025-
sourceItems[1].skip_node = true
1024+
if config.hide_root_node then
1025+
if not parentId then
1026+
sourceItems[1].skip_node = true
1027+
end
10261028
if not config.retain_hidden_root_indent then
10271029
level = level - 1
10281030
end

0 commit comments

Comments
 (0)