mirror of
https://github.com/atom/atom.git
synced 2026-01-25 06:48:28 -05:00
Slightly improve algorithm to calculate @endRow
This commit is contained in:
@@ -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: ->
|
||||
|
||||
Reference in New Issue
Block a user