pub fn regions(buffer: &Buffer, start: Cursor, end: Cursor) -> Vec<Rectangle>
Computes selection regions in the given buffer.