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')
if @vimState.mode is "visual"
@vimState.resetVisualMode()
else
- @vimState.activateCommandMode()
+ @vimState.activateNormalMode()
return
@editor.moveDown()
@editor.moveToFirstCharacterOfLine()
- @vimState.activateCommandMode()
+ @vimState.activateNormalMode()