Skip to main content

render_lines

Function render_lines 

Source
pub fn render_lines(preview: &DiffPreview) -> Vec<Line<'static>>
Expand description

Render a DiffPreview as native ratatui Lines.

Each diff line’s gutter (line numbers + ±) occupies GUTTER_WIDTH columns. The caller can use this to implement NoSelect on copy.