Revert previous commit

This commit is contained in:
Antonio Scandurra
2015-09-18 12:24:53 +02:00
parent b773b60c7b
commit 03507f7be3
2 changed files with 18 additions and 7 deletions

View File

@@ -343,7 +343,9 @@ class TextEditorPresenter
updateVisibleTilesState: ->
return unless @startRow? and @endRow? and @lineHeight?
@updateTilesState([@startRow...@endRow])
startRow = @getStartTileRow()
endRow = Math.min(@model.getScreenLineCount(), @getEndTileRow() + @tileSize)
@updateTilesState([startRow...endRow])
updateTilesState: (screenRows) ->
visibleTiles = {}
@@ -360,7 +362,7 @@ class TextEditorPresenter
while screenRowIndex >= 0
currentScreenRow = screenRows[screenRowIndex]
break if currentScreenRow < tileStartRow
rowsWithinTile.unshift(currentScreenRow)
rowsWithinTile.push(currentScreenRow)
screenRowIndex--
continue if rowsWithinTile.length is 0