Only update lines if it is needed

This commit is contained in:
Corey Johnson
2012-05-16 10:58:02 -07:00
parent 399fc71b3c
commit 85c0d6a35a

View File

@@ -274,6 +274,8 @@ class Editor extends View
firstVisibleScreenRow = @getFirstVisibleScreenRow()
lastVisibleScreenRow = @getLastVisibleScreenRow()
return if @firstRenderedScreenRow <= firstVisibleScreenRow and @lastRenderedScreenRow >= lastVisibleScreenRow
@gutter.renderLineNumbers(firstVisibleScreenRow, lastVisibleScreenRow)
if firstVisibleScreenRow > @firstRenderedScreenRow