Slightly improve algorithm to calculate @endRow

This commit is contained in:
Antonio Scandurra
2016-01-13 09:31:17 -07:00
parent 1f0e6a0902
commit d370164624

View File

@@ -638,7 +638,7 @@ class TextEditorPresenter
@endRow = Math.min(
@model.getScreenLineCount(),
@lineTopIndex.rowForPixelPosition(@scrollTop + @height + (2 * @lineHeight - 1))
@lineTopIndex.rowForPixelPosition(@scrollTop + @height + @lineHeight - 1) + 1
)
updateRowsPerPage: ->