MCPcopy
hub / github.com/mathaou/termdbms / SetCursor

Method SetCursor

tuiutil/textinput.go:210–212  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
210func (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

Callers 7

initFunction · 0.80
HandleEditInputFunction · 0.80
HandleEditMovementFunction · 0.80
HandleEditModeFunction · 0.80
CreateEmptyBufferFunction · 0.80
CreatePopulatedBufferFunction · 0.80
EditEnterFunction · 0.80

Calls 1

setCursorMethod · 0.95

Tested by

no test coverage detected