Skip to content

Commit 627dde9

Browse files
committed
fixed crashing when root dir isn't git dir
1 parent 10fc0eb commit 627dde9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/explorer/common.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ local function get_dir_git_status(parent_ignored, status, absolute_path)
1616

1717
return {
1818
file = status.files and status.files[absolute_path],
19-
dir = {
19+
dir = status.dirs and {
2020
direct = status.dirs.direct[absolute_path],
2121
indirect = status.dirs.indirect[absolute_path],
2222
},

0 commit comments

Comments
 (0)