Skip to main content

get_line_selection_range

Function get_line_selection_range 

Source
pub fn get_line_selection_range(
    selection: &Option<Selection>,
    line_idx: usize,
) -> Option<(usize, usize)>
Expand description

Get the selection range for a specific line (start_col, end_col) Returns None if the line is not selected