X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/24c7594d62d8d7fbbcdb64b11ce4adc5d8e6991a..e7572a53051b96e0d428111831c7abc5d24cb468:/atom/packages/vim-mode/lib/operators/replace-operator.coffee diff --git a/atom/packages/vim-mode/lib/operators/replace-operator.coffee b/atom/packages/vim-mode/lib/operators/replace-operator.coffee index 52157d0..9cf44b3 100644 --- a/atom/packages/vim-mode/lib/operators/replace-operator.coffee +++ b/atom/packages/vim-mode/lib/operators/replace-operator.coffee @@ -5,7 +5,7 @@ _ = require 'underscore-plus' module.exports = class Replace extends OperatorWithInput - constructor: (@editor, @vimState, {@selectOptions}={}) -> + constructor: (@editor, @vimState) -> super(@editor, @vimState) @viewModel = new ViewModel(this, class: 'replace', hidden: true, singleChar: true, defaultText: '\n') @@ -16,7 +16,7 @@ class Replace extends OperatorWithInput if @vimState.mode is "visual" @vimState.resetVisualMode() else - @vimState.activateCommandMode() + @vimState.activateNormalMode() return @@ -47,4 +47,4 @@ class Replace extends OperatorWithInput @editor.moveDown() @editor.moveToFirstCharacterOfLine() - @vimState.activateCommandMode() + @vimState.activateNormalMode()