checkSelection

fun checkSelection(selection: EditorSelection, docLength: Int)