mirror of
https://github.com/atom/atom.git
synced 2026-02-12 15:45:23 -05:00
Revert previous commit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user