Skip to main content

render_diff

Function render_diff 

Source
pub fn render_diff(
    file: &FileDiff,
    width: u16,
    theme: &Theme,
    highlighter: &mut SyntaxHighlighter,
) -> Vec<Line<'static>>
Expand description

The bounded inline preview: the first MAX_PREVIEW_ROWS content rows of the canonical layout, with the hidden remainder collapsed into a count.