Browse Source

Add origin to moveCursorToEnd()

bugs/edit-cursor
Gregory Rudolph 5 years ago
parent
commit
acf822e5a1
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 2
      main.go

2
main.go

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

Loading…
Cancel
Save