diff options
Diffstat (limited to 'atom/packages/vim-mode/lib/view-models/view-model.coffee')
| -rw-r--r-- | atom/packages/vim-mode/lib/view-models/view-model.coffee | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/atom/packages/vim-mode/lib/view-models/view-model.coffee b/atom/packages/vim-mode/lib/view-models/view-model.coffee deleted file mode 100644 index b9da169..0000000 --- a/atom/packages/vim-mode/lib/view-models/view-model.coffee +++ /dev/null @@ -1,25 +0,0 @@ -VimNormalModeInputElement = require './vim-normal-mode-input-element' - -class ViewModel - constructor: (@operation, opts={}) -> - {@editor, @vimState} = @operation - @view = new VimNormalModeInputElement().initialize(this, atom.views.getView(@editor), opts) - @editor.normalModeInputView = @view - @vimState.onDidFailToCompose => @view.remove() - - confirm: (view) -> - @vimState.pushOperations(new Input(@view.value)) - - cancel: (view) -> - if @vimState.isOperatorPending() - @vimState.pushOperations(new Input('')) - delete @editor.normalModeInputView - -class Input - constructor: (@characters) -> - isComplete: -> true - isRecordable: -> true - -module.exports = { - ViewModel, Input -} |