mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-08 16:19:17 +03:00
Refer to instance cursorRow variable
This commit is contained in:
parent
c2417bfc46
commit
02768fa68d
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user