vim-engine/src/main/kotlin/com/maddyhome/idea/vim/action/motion/select/motion/SelectMotionArrowLeftAction.kt [34:52]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - override val motionType: MotionType = MotionType.EXCLUSIVE override fun getOffset( editor: VimEditor, caret: ImmutableVimCaret, context: ExecutionContext, argument: Argument?, operatorArguments: OperatorArguments, ): Motion { val keymodel = injector.globalOptions().keymodel if (OptionConstants.keymodel_stopsel in keymodel || OptionConstants.keymodel_stopselect in keymodel) { logger.debug("Keymodel option has stopselect. Exiting select mode") val startSelection = caret.selectionStart val endSelection = caret.selectionEnd editor.exitSelectModeNative(false) if (editor.isTemplateActive()) { logger.debug("Template is active. Activate insert mode") injector.changeGroup.insertBeforeCaret(editor, context) if (caret.offset in startSelection..endSelection) { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - vim-engine/src/main/kotlin/com/maddyhome/idea/vim/action/motion/select/motion/SelectMotionArrowRightAction.kt [34:52]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - override val motionType: MotionType = MotionType.EXCLUSIVE override fun getOffset( editor: VimEditor, caret: ImmutableVimCaret, context: ExecutionContext, argument: Argument?, operatorArguments: OperatorArguments, ): Motion { val keymodel = injector.globalOptions().keymodel if (OptionConstants.keymodel_stopsel in keymodel || OptionConstants.keymodel_stopselect in keymodel) { logger.debug("Keymodel option has stopselect. Exiting select mode") val startSelection = caret.selectionStart val endSelection = caret.selectionEnd editor.exitSelectModeNative(false) if (editor.isTemplateActive()) { logger.debug("Template is active. Activate insert mode") injector.changeGroup.insertBeforeCaret(editor, context) if (caret.offset in startSelection..endSelection) { - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -