minor optimization

This commit is contained in:
Productive2 2021-02-23 17:40:21 +01:00
parent 4165a67ee9
commit 6e44c4edf9
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ proc fullRender(editor: LineEditor) =
# return to the selected y pos
let vindex = editor.content.Y - editor.vscroll
cursorUp(rendered - vindex + extraup)
cursorUp(lastY + 1 - editor.content.Y + extraup)
proc moveCursorToEnd(editor: LineEditor) =
# only called when read finished