diff --git a/src/text-editor-presenter.coffee b/src/text-editor-presenter.coffee index e3078790e..aad660d57 100644 --- a/src/text-editor-presenter.coffee +++ b/src/text-editor-presenter.coffee @@ -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: ->