Refer to instance cursorRow variable

This commit is contained in:
Kevin Sawicki 2012-09-28 10:30:13 -07:00
parent c2417bfc46
commit 02768fa68d

View File

@ -42,7 +42,7 @@ class Gutter extends View
return if @firstScreenRow < 0
newCursorRow = @editor().getCursorBufferPosition().row - @firstScreenRow
if newCursorRow isnt cursorRow
cursorRow = newCursorRow
if newCursorRow isnt @cursorRow
@cursorRow = newCursorRow
@find('.line-number.cursor-line-number').removeClass('cursor-line-number')
@find(".line-number:eq(#{cursorRow})").addClass('cursor-line-number')
@find(".line-number:eq(#{newCursorRow})").addClass('cursor-line-number')