X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/24c7594d62d8d7fbbcdb64b11ce4adc5d8e6991a..a76da7e11d83b1eb3b34b44a7b7f8faebb116ee2:/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()