 
   get: (name) ->
     return unless @isValidName(name)
-    if name is '"'
-      name = settings.get('defaultRegister')
+    name = settings.get('defaultRegister') if name is '"'
 
     switch name
       when '*', '+'

    register = @globalVimState.registers[name] ?=
      type: 'character'
      text: ''

    if register.type is 'linewise' and type isnt 'linewise'
      register.text += "#{text}\n"
    else if register.type isnt 'linewise' and type is 'linewise'
      register.text += "\n#{text}"
      register.type = 'linewise'
    else
      register.text += text

  reset: ->
    @name = null

    @name ? settings.get('defaultRegister')

  setName: ->
    viewModel = new ViewModel this,
      class: 'read-register'
      singleChar: true
      hidden: true
    viewModel.onDidGetInput (@name) =>

  getCopyType: (text) ->
    if text.lastIndexOf("\n") is text.length - 1
      'linewise'
