@@ -82,8 +82,8 @@ local function path_ignored_in_project(path, project)
8282 end
8383
8484 if project .files then
85- for file , status in pairs (project .files ) do
86- if status == " !!" and vim .startswith (path , file ) then
85+ for p , xy in pairs (project .files ) do
86+ if xy == " !!" and vim .startswith (path , p ) then
8787 return true
8888 end
8989 end
@@ -235,13 +235,13 @@ local function reload_tree_at(toplevel)
235235 end
236236
237237 M .reload_project (toplevel , nil , function ()
238- local git_status = M .get_project (toplevel )
238+ local project = M .get_project (toplevel )
239239
240240 Iterator .builder (root_node .nodes )
241241 :hidden ()
242242 :applier (function (node )
243243 local parent_ignored = node .parent and node .parent :is_git_ignored () or false
244- node :update_git_status (parent_ignored , git_status )
244+ node :update_git_status (parent_ignored , project )
245245 end )
246246 :recursor (function (node )
247247 return node .nodes and # node .nodes > 0 and node .nodes
@@ -371,9 +371,9 @@ function M.reload_node_status(dir, projects)
371371 end
372372
373373 local toplevel = M .get_toplevel (dir .absolute_path )
374- local status = projects [toplevel ] or {}
374+ local project = projects [toplevel ] or {}
375375 for _ , node in ipairs (dir .nodes ) do
376- node :update_git_status (dir :is_git_ignored (), status )
376+ node :update_git_status (dir :is_git_ignored (), project )
377377 M .reload_node_status (node :as (DirectoryNode ), projects )
378378 end
379379end
0 commit comments