SetCursor moves the cursor to the given position. If the position is out of bounds the cursor will be moved to the start or end accordingly.
(pos int)
| 208 | // SetCursor moves the cursor to the given position. If the position is |
| 209 | // out of bounds the cursor will be moved to the start or end accordingly. |
| 210 | func (m *TextInputModel) SetCursor(pos int) { |
| 211 | m.setCursor(pos) |
| 212 | } |
| 213 | |
| 214 | // setCursor moves the cursor to the given position and returns whether or not |
| 215 | // the cursor blink should be reset. If the position is out of bounds the |
no test coverage detected