render_line

Function render_line 

Source
pub fn render_line(
    line: Option<&DiffLine>,
    config: &DiffConfig,
    theme: &AppTheme,
    x: u16,
    y: u16,
    width: u16,
    buf: &mut Buffer,
    is_left: bool,
)
Expand description

Renders a single diff line content.

ยงArguments

  • line - The diff line to render (None for empty filler)
  • config - Display configuration
  • theme - Application theme for colors
  • x - Starting x position (after line number)
  • y - Y position
  • width - Available width for content
  • buf - The buffer to render to
  • is_left - Whether this is the left (old) or right (new) panel