fix: diff view old side showing new side line no
This commit is contained in:
@@ -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),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user