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

Method SetSelectionStart

internal/buffer/cursor.go:161–163  ·  view source on GitHub ↗

SetSelectionStart sets the start of the selection

(pos Loc)

Source from the content-addressed store, hash-verified

159
160// SetSelectionStart sets the start of the selection
161func (c *Cursor) SetSelectionStart(pos Loc) {
162 c.CurSelection[0] = pos
163}
164
165// SetSelectionEnd sets the end of the selection
166func (c *Cursor) SetSelectionEnd(pos Loc) {

Callers 15

SpawnMultiCursorMethod · 0.95
checkFunction · 0.95
benchEditFunction · 0.95
SelectLineMethod · 0.95
AddLineToSelectionMethod · 0.95
SelectWordMethod · 0.95
AddWordToSelectionMethod · 0.95
SelectToMethod · 0.95
IndentSelectionMethod · 0.80
OutdentSelectionMethod · 0.80
SearchMethod · 0.80
findMethod · 0.80

Calls

no outgoing calls

Tested by 2

checkFunction · 0.76
benchEditFunction · 0.76