X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/24c7594d62d8d7fbbcdb64b11ce4adc5d8e6991a..050ac4424016a2844a6f8b9a4972a13ce14e7ec9:/atom/packages/vim-mode/lib/operators/put-operator.coffee diff --git a/atom/packages/vim-mode/lib/operators/put-operator.coffee b/atom/packages/vim-mode/lib/operators/put-operator.coffee index 63151f1..611d6fa 100644 --- a/atom/packages/vim-mode/lib/operators/put-operator.coffee +++ b/atom/packages/vim-mode/lib/operators/put-operator.coffee @@ -9,7 +9,7 @@ module.exports = class Put extends Operator register: null - constructor: (@editor, @vimState, {@location, @selectOptions}={}) -> + constructor: (@editor, @vimState, {@location}={}) -> @location ?= 'after' @complete = true @register = settings.defaultRegister() @@ -58,9 +58,9 @@ class Put extends Operator @editor.setCursorScreenPosition(originalPosition) @editor.moveToFirstCharacterOfLine() - @vimState.activateCommandMode() if type isnt 'linewise' @editor.moveLeft() + @vimState.activateNormalMode() # Private: Helper to determine if the editor is currently on the last row. #