fn delete_selected(
    text: &mut dyn TextBuffer,
    cursor_range: &CursorRange
) -> CCursor