Kodemirror
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Kodemirror
state
/
com.monkopedia.kodemirror.state
/
EditorSelection
/
Companion
/
create
create
fun
create
(
ranges
:
List
<
SelectionRange
>
,
mainIndex
:
Int
=
0
)
:
EditorSelection
Sort and merge the given set of ranges, creating a valid selection.