git_statuses -> git_status for consistency
This commit is contained in:
@@ -24,8 +24,8 @@ end
|
|||||||
|
|
||||||
function Explorer:_load(node)
|
function Explorer:_load(node)
|
||||||
local cwd = node.link_to or node.absolute_path
|
local cwd = node.link_to or node.absolute_path
|
||||||
local git_statuses = git.load_project_status(cwd)
|
local git_status = git.load_project_status(cwd)
|
||||||
M.explore(node, git_statuses)
|
M.explore(node, git_status)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Explorer:expand(node)
|
function Explorer:expand(node)
|
||||||
|
|||||||
@@ -60,19 +60,19 @@ local function warn_status(git_status)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local function get_icons_(node)
|
local function get_icons_(node)
|
||||||
local git_statuses = explorer_common.get_git_status(node)
|
local git_status = explorer_common.get_git_status(node)
|
||||||
if git_statuses == nil then
|
if git_status == nil then
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
local inserted = {}
|
local inserted = {}
|
||||||
local iconss = {}
|
local iconss = {}
|
||||||
|
|
||||||
for _, git_status in pairs(git_statuses) do
|
for _, s in pairs(git_status) do
|
||||||
local icons = M.git_icons[git_status]
|
local icons = M.git_icons[s]
|
||||||
if not icons then
|
if not icons then
|
||||||
if not M.config.highlight_git then
|
if not M.config.highlight_git then
|
||||||
warn_status(git_status)
|
warn_status(s)
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user