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

Method ResetSelection

internal/buffer/cursor.go:155–158  ·  view source on GitHub ↗

ResetSelection resets the user's selection

()

Source from the content-addressed store, hash-verified

153
154// ResetSelection resets the user's selection
155func (c *Cursor) ResetSelection() {
156 c.CurSelection[0] = c.buf.Start()
157 c.CurSelection[1] = c.buf.Start()
158}
159
160// SetSelectionStart sets the start of the selection
161func (c *Cursor) SetSelectionStart(pos Loc) {

Callers 15

DeselectMethod · 0.95
DoRuneInsertMethod · 0.80
InsertNewlineMethod · 0.80
BackspaceMethod · 0.80
DeleteWordRightMethod · 0.80
DeleteWordLeftMethod · 0.80
DeleteSubWordRightMethod · 0.80
DeleteSubWordLeftMethod · 0.80
DeleteMethod · 0.80
SearchMethod · 0.80
findMethod · 0.80
FindNextMethod · 0.80

Calls 1

StartMethod · 0.45

Tested by

no test coverage detected