Skip to main content

side_by_side_rows

Function side_by_side_rows 

Source
pub fn side_by_side_rows(lines: &[DiffDisplayLine]) -> Vec<SideBySideRow>
Expand description

Pair display lines into side-by-side rows.

Context lines appear on both sides. Consecutive deletion/addition runs are zipped index-wise so old and new lines sit on the same visual row. Hunk headers and metadata span the full width (stored on left).