-VimCommandModeInputElement = require './vim-command-mode-input-element'
+VimNormalModeInputElement = require './vim-normal-mode-input-element'
class ViewModel
constructor: (@operation, opts={}) ->
{@editor, @vimState} = @operation
- @view = new VimCommandModeInputElement().initialize(this, opts)
- @editor.commandModeInputView = @view
+ @view = new VimNormalModeInputElement().initialize(this, atom.views.getView(@editor), opts)
+ @editor.normalModeInputView = @view
@vimState.onDidFailToCompose => @view.remove()
confirm: (view) ->
cancel: (view) ->
if @vimState.isOperatorPending()
@vimState.pushOperations(new Input(''))
+ delete @editor.normalModeInputView
class Input
constructor: (@characters) ->