1
0
mirror of https://github.com/Rudi9719/kbtui.git synced 2026-03-22 09:57:24 +00:00

Add origin to moveCursorToEnd()

This commit is contained in:
2019-10-22 09:42:11 -04:00
parent 5eb23ff993
commit acf822e5a1

View File

@ -213,6 +213,8 @@ func moveCursorToEnd(viewName string) {
maxX, _ := inputView.Size() maxX, _ := inputView.Size()
x := stringLen % maxX x := stringLen % maxX
y := stringLen / maxX y := stringLen / maxX
inputView.SetCursor(0, 0)
inputView.SetOrigin(0, 0)
inputView.MoveCursor(x, y, true) inputView.MoveCursor(x, y, true)
return nil return nil