diff options
Diffstat (limited to 'plugins/gitstatus.lua')
-rw-r--r-- | plugins/gitstatus.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/gitstatus.lua b/plugins/gitstatus.lua index eb925b0..54bd6e8 100644 --- a/plugins/gitstatus.lua +++ b/plugins/gitstatus.lua @@ -70,7 +70,13 @@ core.add_thread(function() deletes = deletes + (tonumber(dels) or 0) local abs_path = core.project_dir.."/"..root..path if TreeView then - TreeView:set_color_override(abs_path, style.gitstatus_modification) + -- Color this file, and each parent folder, + -- so you can see at a glance which folders + -- have modified files in them. + while abs_path do + TreeView:set_color_override(abs_path, style.gitstatus_modification) + abs_path = common.dirname(abs_path) + end end end end |