minor optimization
This commit is contained in:
parent
4165a67ee9
commit
6e44c4edf9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue