fix(ci): use proper deep compare
This commit is contained in:
parent
9b6df85e9e
commit
1049e60736
2 changed files with 8 additions and 4 deletions
|
|
@ -97,8 +97,9 @@ function M.parse_git_diff(diff_output)
|
|||
table.insert(all_highlights, highlight)
|
||||
end
|
||||
elseif not line:match('^%-') and not line:match('^\\') then -- Skip removed lines and "\ No newline" messages
|
||||
-- Unchanged line
|
||||
local parsed_line, line_highlights = parse_diff_line(line)
|
||||
-- Unchanged line - remove leading space if present
|
||||
local clean_line = line:match('^%s') and line:sub(2) or line
|
||||
local parsed_line, line_highlights = parse_diff_line(clean_line)
|
||||
table.insert(content_lines, parsed_line)
|
||||
|
||||
-- Set line numbers for any highlights (shouldn't be any for unchanged lines)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue