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

        @cursor.bufferChanged(e)

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

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


      @setPosition(row: 0, col: 0)

      @buffer.on 'change', (e) =>
        { preRange, postRange } = e

