create

fun create(ranges: List<SelectionRange>, mainIndex: Int = 0): EditorSelection

Sort and merge the given set of ranges, creating a valid selection.