           endPosition - textFocusView.bounds[endRow].x,
           @view.opts.textHeight
 
+    #if scrollIntoView and endPosition > @scrollOffsets.main.x + @mainCanvas.width
+    #  null
+    #@mainScroller.scrollLeft = endPosition - @mainCanvas.width + @view.opts.padding
 
   # Convenince function for setting the text input
   Editor::setTextInputFocus = (focus, selectionStart = 0, selectionEnd = 0) ->

    else
      @redrawMain()

    @redrawTextHighlights()
    
  Editor::redrawTextHighlights = ->
    textFocusView = @view.getViewNodeFor @textFocus

    # Determine the coordinate positions

  # ANIMATION AND ACE EDITOR SUPPORT
  # ================================

  Editor::copyAceEditor = ->
    @setFontSize_raw @aceEditor.getFontSize()
    @gutter.style.width = @aceEditor.renderer.$gutterLayer.gutterWidth + 'px'
    @resize()

  hook 'populate', 0, ->
    @aceElement = document.createElement 'div'
    @aceElement.className = 'ice-ace'
