in src/main/kotlin/com/github/mkartashev/hserr/miner/text/Text.kt [52:54]
fun cursorAt(offset: Int): Cursor { return if (offset < 0 || offset >= contents.length) pastEnd else Cursor(offset) }