   # iterator - A {Function} that's called on each match
   backwardsScanInBufferRange: (args...) -> @getBuffer().backwardsScanInRange(args...)
 
-  # Internal:
+  ###
+  # Internal #
+  ###
+
   configure: ->
     @observeConfig 'editor.showLineNumbers', (showLineNumbers) => @gutter.setShowLineNumbers(showLineNumbers)
     @observeConfig 'editor.showInvisibles', (showInvisibles) => @setShowInvisibles(showInvisibles)

    @observeConfig 'editor.fontSize', (fontSize) => @setFontSize(fontSize)
    @observeConfig 'editor.fontFamily', (fontFamily) => @setFontFamily(fontFamily)

  # Internal: Responsible for handling events made to the editor.
  handleEvents: ->
    @on 'focus', =>
      @hiddenInput.focus()

    if options?.adjustVerticalScrollbar ? true
      @verticalScrollbar.scrollTop(scrollTop)

  scrollBottom: (scrollBottom) ->
    if scrollBottom?
      @scrollTop(scrollBottom - @scrollView.height())
    else
      @scrollTop() + @scrollView.height()

  ###
  # Public #
  ###

  # Public: Retrieves the {EditSession}'s buffer.
  #
  # Returns the current {Buffer}.
  getBuffer: -> @activeEditSession.buffer
  
  # Public: Scrolls the editor to the bottom.
  scrollToBottom: ->
    @scrollBottom(@screenLineCount() * @lineHeight)
