fix(ci): use proper deep compare

This commit is contained in:
Barrett Ruth 2025-09-19 14:14:12 -04:00
parent 9b6df85e9e
commit 1049e60736
2 changed files with 8 additions and 4 deletions

View file

@ -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)