MCPcopy Create free account
hub / github.com/cogentcore/core / cursorSelect

Method cursorSelect

texteditor/nav.go:183–188  ·  view source on GitHub ↗

cursorSelect updates selection based on cursor movements, given starting cursor position and ed.CursorPos is current

(org lexer.Pos)

Source from the content-addressed store, hash-verified

181// cursorSelect updates selection based on cursor movements, given starting
182// cursor position and ed.CursorPos is current
183func (ed *Editor) cursorSelect(org lexer.Pos) {
184 if !ed.selectMode {
185 return
186 }
187 ed.selectRegionUpdate(ed.CursorPos)
188}
189
190// cursorForward moves the cursor forward
191func (ed *Editor) cursorForward(steps int) {

Callers 12

cursorForwardMethod · 0.95
cursorForwardWordMethod · 0.95
cursorDownMethod · 0.95
cursorPageDownMethod · 0.95
cursorBackwardMethod · 0.95
cursorBackwardWordMethod · 0.95
cursorUpMethod · 0.95
cursorPageUpMethod · 0.95
cursorStartLineMethod · 0.95
CursorStartDocMethod · 0.95
cursorEndLineMethod · 0.95
cursorEndDocMethod · 0.95

Calls 1

selectRegionUpdateMethod · 0.95

Tested by

no test coverage detected