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:
2
main.go
2
main.go
@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user