 
     @setActive()
 
-  ###
-   * Gets called when the content has been modified
-   * @private
-  ###
+  # Private: Gets called when the content has been modified
   contentsModified: =>
     delay = parseInt(atom.config.get "autocomplete-plus.autoActivationDelay")
     if @delayTimeout

    # changing any text
    @editor.on "cursor-moved", @cursorMoved

  ###
   * Registers the given provider
   * @param  {Provider} provider
   * @public
  ###
  registerProvider: (provider) ->
    @providers.push(provider) unless _.findWhere(@providers, provider)?

  ###
   * Unregisters the given provider
   * @param  {Provider} provider
   * @public
  ###
  unregisterProvider: (provider) ->
    _.remove @providers, provider

  ###
   * Gets called when the user successfully confirms a suggestion
   * @private
  ###
  confirmed: (match) ->
    replace = match.provider.confirm match


    suffixLength = match.word.length - match.prefix.length
    @editor.setSelectedBufferRange [startPosition, [startPosition.row, startPosition.column + suffixLength]]

  # Private: As soon as the list is in the DOM tree, it calculates the maximum width of
  # all list items and resizes the list so that all items fit
  #
  # onDom - {Boolean} is the element in the DOM?
  afterAttach: (onDom) ->
    return unless onDom

