Skip to main content

normalize_selection

Function normalize_selection 

Source
pub fn normalize_selection(
    selection: &Selection,
) -> (CopyModeCursor, CopyModeCursor)
Expand description

Normalize a selection so that start comes before end

Returns (start, end) where start.y < end.y, or if start.y == end.y, then start.x <= end.x