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 edd4e25 commit 340d3a9Copy full SHA for 340d3a9
lua/nvim-tree/explorer/node.lua
@@ -29,7 +29,7 @@ end
29
---@param absolute_path string
30
---@return GitStatus
31
local function get_git_status(parent_ignored, status, absolute_path)
32
- local file_status = parent_ignored and "!!" or status.files and status.files[absolute_path]
+ local file_status = parent_ignored and "!!" or (status and status.files and status.files[absolute_path])
33
return { file = file_status }
34
end
35
0 commit comments