vim-engine/src/main/kotlin/com/maddyhome/idea/vim/action/copy/YankVisualAction.kt [29:46]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - override fun executeForAllCarets( editor: VimEditor, context: ExecutionContext, cmd: Command, caretsAndSelections: Map, operatorArguments: OperatorArguments, ): Boolean { val selections = caretsAndSelections.values val starts: MutableList = ArrayList() val ends: MutableList = ArrayList() selections.forEach { selection: VimSelection -> val textRange = selection.toVimTextRange(false) textRange.startOffsets.forEach { e: Int -> starts.add(e) } textRange.endOffsets.forEach { e: Int -> ends.add(e) } } val vimSelection = selections.firstOrNull() ?: return false val startsArray = starts.toIntArray() val endsArray = ends.toIntArray() - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - vim-engine/src/main/kotlin/com/maddyhome/idea/vim/action/copy/YankVisualLinesAction.kt [35:52]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - override fun executeForAllCarets( editor: VimEditor, context: ExecutionContext, cmd: Command, caretsAndSelections: Map, operatorArguments: OperatorArguments, ): Boolean { val selections = caretsAndSelections.values val starts: MutableList = ArrayList() val ends: MutableList = ArrayList() selections.forEach { selection: VimSelection -> val textRange = selection.toVimTextRange(false) textRange.startOffsets.forEach { e: Int -> starts.add(e) } textRange.endOffsets.forEach { e: Int -> ends.add(e) } } val vimSelection = selections.firstOrNull() ?: return false val startsArray = starts.toIntArray() val endsArray = ends.toIntArray() - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -