 
       @setPosition(row: 0, col: 0)
 
-      # @buffer.on 'insert', (e) =>
-      #   {row} = e.range.start
-      #   updatedLine = @buildLineElement(@buffer.getLine(row))
-      #   @lines.find('pre').eq(row).replaceWith(updatedLine)
-      #   if e.string == '\n'
-      #     updatedLine.after @buildLineElement(@buffer.getLine(row + 1))
-
       @buffer.on 'change', (e) =>
         { preRange, postRange } = e
 

        @cursor.bufferChanged(e)

    updateLineElement: (row) ->
      @getLineElement(row).replaceWith(@buildLineElement(@buffer.getLine(row)))

    insertLineElement: (row) ->
      @getLineElement(row).before(@buildLineElement(@buffer.getLine(row)))

      @on 'move-left', => @moveLeft()
      @on 'move-down', => @moveDown()
      @on 'move-up', => @moveUp()
      @on 'newline', => @bench = @buffer.change({ start: @getPosition(), end: @getPosition() }, "\n")
      @on 'backspace', => @benrch = @buffer.backspace @getPosition()

    handleEvents: ->
      @on 'focus', =>
