Skip to main content

capture_context

Function capture_context 

Source
pub fn capture_context(
    hunk: &Hunk,
    line_idx: usize,
    radius: usize,
) -> Vec<String>
Expand description

Capture up to radius lines on each side of line_idx within hunk (excluding the line itself) as fuzzy-match context.