File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,20 @@ local parse_git_status_line = function(context, line)
7575 relative_path = utils .windowize_path (relative_path )
7676 end
7777 local absolute_path = utils .path_join (git_root , relative_path )
78+ -- merge status result if there are results from multiple passes
79+ local existing_status = git_status [absolute_path ]
80+ if existing_status then
81+ local merged = " "
82+ local i = 0
83+ while i < 2 do
84+ i = i + 1
85+ local existing_char = # existing_status >= i and existing_status :sub (i , i ) or " "
86+ local new_char = # status >= i and status :sub (i , i ) or " "
87+ local merged_char = get_priority_git_status_code (existing_char , new_char )
88+ merged = merged .. merged_char
89+ end
90+ status = merged
91+ end
7892 git_status [absolute_path ] = status
7993
8094 if not exclude_directories then
You can’t perform that action at this time.
0 commit comments