From d370164624fd72213953ea702e78466008c089ab Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 13 Jan 2016 09:31:17 -0700 Subject: [PATCH] Slightly improve algorithm to calculate @endRow --- src/text-editor-presenter.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: ->