pub fn render_line_number(
line_num: Option<usize>,
config: &DiffConfig,
x: u16,
y: u16,
buf: &mut Buffer,
bg_style: Style,
) -> u16Expand description
Renders a line number in the gutter.
§Arguments
line_num- The line number to render (None for empty space)config- Display configurationx- Starting x positiony- Y positionbuf- The buffer to render tobg_style- Background style to apply
§Returns
The x position after rendering the line number