MCPcopy
hub / github.com/micro-editor/micro / SetCurCursor

Method SetCurCursor

internal/buffer/buffer.go:1046–1048  ·  view source on GitHub ↗

SetCurCursor sets the current cursor

(n int)

Source from the content-addressed store, hash-verified

1044
1045// SetCurCursor sets the current cursor
1046func (b *Buffer) SetCurCursor(n int) {
1047 b.curCursor = n
1048}
1049
1050// GetActiveCursor returns the main cursor in this buffer
1051func (b *Buffer) GetActiveCursor() *Cursor {

Callers 8

BufMapEventFunction · 0.80
DoRuneInsertMethod · 0.80
SpawnMultiCursorMethod · 0.80
SpawnMultiCursorUpNMethod · 0.80
skipMultiCursorMethod · 0.80
RemoveMultiCursorMethod · 0.80
checkFunction · 0.80
benchEditFunction · 0.80

Calls

no outgoing calls

Tested by 2

checkFunction · 0.64
benchEditFunction · 0.64