     @div class: 'gutter', =>
       @div outlet: 'lineNumbers', class: 'line-numbers'
 
-  cursorRow: -1
+  cursorBufferRow: -1
   firstScreenRow: -1
 
   afterAttach: (onDom) ->

  highlightCursorLine: ->
    return if @firstScreenRow < 0

    newCursorRow = @editor().getCursorBufferPosition().row - @firstScreenRow
    if newCursorRow isnt @cursorRow
      @cursorRow = newCursorRow
      @find('.line-number.cursor-line-number').removeClass('cursor-line-number')
      @find(".line-number:eq(#{newCursorRow})").addClass('cursor-line-number')

  renderLineNumbers: (startScreenRow, endScreenRow) ->
    @firstScreenRow = startScreenRow
    lastScreenRow = -1
    currentCursorBufferRow = @cursorBufferRow
    rows = @editor().bufferRowsForScreenRows(startScreenRow, endScreenRow)

    @lineNumbers[0].innerHTML = $$$ ->
      for row in rows
        rowClass = null
        if row isnt currentCursorBufferRow
          rowClass = 'line-number'
        else
          rowClass = 'line-number cursor-line-number'
