Skip to main content

context_snippet

Function context_snippet 

Source
pub fn context_snippet(
    model: &DiffModel,
    file: &str,
    line: u32,
    on_old_side: bool,
) -> Option<Vec<(char, String)>>
Expand description

The anchored line and its neighbours in the same hunk, each with its diff origin char. None when the line has left the model.