MCPcopy
hub / github.com/ayn2op/discordo / SetCursor

Method SetCursor

internal/ui/chat/messages_list.go:296–298  ·  view source on GitHub ↗

SetCursor selects a message index and maps it to the corresponding row.

(index int)

Source from the content-addressed store, hash-verified

294
295// SetCursor selects a message index and maps it to the corresponding row.
296func (ml *messagesList) SetCursor(index int) {
297 ml.Model.SetCursor(ml.messageToRowIndex(index))
298}
299
300func (ml *messagesList) messageToRowIndex(messageIndex int) int {
301 ml.ensureRows()

Callers 10

clearSelectionMethod · 0.95
UpdateMethod · 0.95
selectUpMethod · 0.95
selectDownMethod · 0.95
selectTopMethod · 0.95
selectBottomMethod · 0.95
selectReplyMethod · 0.95
rebuildMethod · 0.80
onRowCursorChangedMethod · 0.80
onMessageDeleteMethod · 0.80

Calls 1

messageToRowIndexMethod · 0.95

Tested by

no test coverage detected