Skip to content

Commit 569e6a2

Browse files
committed
add type fallback for nil types
1 parent ea55ef1 commit 569e6a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/nvim-tree/explorer/explore.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ local function populate_children(handle, cwd, node, git_status, parent)
3535
end
3636

3737
local abs = utils.path_join { cwd, name }
38+
t = t or (vim.loop.fs_stat(abs) or {}).type
3839

3940
if Watcher.is_fs_event_capable(abs) then
4041
local profile = log.profile_start("explore populate_children %s", abs)

0 commit comments

Comments
 (0)