Skip to main content

diff_rows

Function diff_rows 

Source
pub fn diff_rows(
    file: &FileDiff,
    width: u16,
    theme: &Theme,
    highlighter: &mut SyntaxHighlighter,
) -> Vec<DiffRow>
Expand description

Lays out file for width columns: a split view when the width allows it and the diff has removals to put on the left, unified otherwise. Every diff rendering in the application draws these rows or a subset of them.