Don't collect reason statistics for reason none Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
@@ -46,7 +46,8 @@ local function populate_children(handle, cwd, node, git_status, parent)
|
|||||||
local type = stat and stat.type or nil
|
local type = stat and stat.type or nil
|
||||||
|
|
||||||
local filter_reason = parent.filters:should_filter_as_reason(abs, stat, filter_status)
|
local filter_reason = parent.filters:should_filter_as_reason(abs, stat, filter_status)
|
||||||
if filter_reason == FILTER_REASON.none and not nodes_by_path[abs] then
|
if filter_reason == FILTER_REASON.none then
|
||||||
|
if not nodes_by_path[abs] then
|
||||||
local child = nil
|
local child = nil
|
||||||
if type == "directory" and vim.loop.fs_access(abs, "R") then
|
if type == "directory" and vim.loop.fs_access(abs, "R") then
|
||||||
child = builders.folder(node, abs, name, stat)
|
child = builders.folder(node, abs, name, stat)
|
||||||
@@ -63,6 +64,7 @@ local function populate_children(handle, cwd, node, git_status, parent)
|
|||||||
nodes_by_path[child.absolute_path] = true
|
nodes_by_path[child.absolute_path] = true
|
||||||
explorer_node.update_git_status(child, node_ignored, git_status)
|
explorer_node.update_git_status(child, node_ignored, git_status)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
else
|
else
|
||||||
for reason, value in pairs(FILTER_REASON) do
|
for reason, value in pairs(FILTER_REASON) do
|
||||||
if filter_reason == value then
|
if filter_reason == value then
|
||||||
|
|||||||
Reference in New Issue
Block a user