vim-engine/src/main/kotlin/com/maddyhome/idea/vim/api/VimSearchHelperBase.kt [889:903]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - editor: VimEditor, offset: Int, count: Int, countCurrent: Boolean, requireAll: Boolean, ): @Range(from = 0, to = Int.MAX_VALUE.toLong()) Int? { var count = count val dir = if (count > 0) Direction.FORWARDS else Direction.BACKWARDS count = Math.abs(count) val total = count val chars: CharSequence = editor.text() val start: Int = offset val max: Int = editor.fileSize().toInt() var res: Int? = start while (count > 0 && res != null && res >= 0 && res <= max - 1) { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - vim-engine/src/main/kotlin/com/maddyhome/idea/vim/api/VimSearchHelperBase.kt [935:949]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - editor: VimEditor, offset: Int, count: Int, countCurrent: Boolean, requireAll: Boolean, ): @Range(from = 0, to = Int.MAX_VALUE.toLong()) Int? { var count = count val dir = if (count > 0) Direction.FORWARDS else Direction.BACKWARDS count = Math.abs(count) val total = count val chars: CharSequence = editor.text() val start: Int = offset val max: Int = editor.fileSize().toInt() var res: Int? = start while (count > 0 && res != null && res >= 0 && res <= max - 1) { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -