fix: diff view old side showing new side line no

This commit is contained in:
2026-05-28 22:33:50 +01:00
parent 101b144f53
commit ecf019a956

View File

@@ -131,13 +131,13 @@ impl DiffRow {
.map(|it| it.highlights_at_line(line)) .map(|it| it.highlights_at_line(line))
}) { }) {
| Some(highlights) => code_line_with_highlights( | Some(highlights) => code_line_with_highlights(
self.line.new_line, self.line.old_line,
content, content,
highlights.iter().cloned(), highlights.iter().cloned(),
marker, marker,
), ),
| None => code_line(self.line.new_line, content, marker), | None => code_line(self.line.old_line, content, marker),
} }
} }