 #  [x] 9. The black hole register "_
 #  [ ] 10. Last search pattern register "/
 
+module.exports =
 class RegisterManager
   constructor: (@vimState) ->
     {@editor, @editorElement, @globalState} = @vimState


  setName: (@name) ->
    if @name?
      @vimState.toggleClassList('with-register', true)
      @vimState.hover.set('"' + @name)
    else
      @vimState.hover.set('"')


  reset: ->
    @name = null
    @editorElement.classList.toggle('with-register', false)

  destroy: ->
    @subscriptionBySelection.forEach (disposable) ->
