fix: Don't add diff symbol to unchanged lines

This commit is contained in:
Scott Schafer
2025-10-22 09:58:23 -06:00
parent dc1feabef2
commit c7f014ddc6
8 changed files with 53 additions and 54 deletions

View File

@@ -2698,8 +2698,7 @@ impl HumanEmitter {
[SubstitutionHighlight { start: 0, end }] if *end == line_to_add.len() => {
buffer.puts(*row_num, max_line_num_len + 1, "+ ", Style::Addition);
}
[] => {
// FIXME: needed? Doesn't get exercised in any test.
[] | [SubstitutionHighlight { start: 0, end: 0 }] => {
self.draw_col_separator_no_space(buffer, *row_num, max_line_num_len + 1);
}
_ => {