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

Method SelectToEndOfLine

internal/action/actions.go:540–548  ·  view source on GitHub ↗

SelectToEndOfLine selects to the end of the current line

()

Source from the content-addressed store, hash-verified

538
539// SelectToEndOfLine selects to the end of the current line
540func (h *BufPane) SelectToEndOfLine() bool {
541 if !h.Cursor.HasSelection() {
542 h.Cursor.OrigSelection[0] = h.Cursor.Loc
543 }
544 h.Cursor.End()
545 h.Cursor.SelectTo(h.Cursor.Loc)
546 h.Relocate()
547 return true
548}
549
550func (h *BufPane) paragraphPrevious() {
551 var line int

Callers

nothing calls this directly

Calls 4

SelectToMethod · 0.80
RelocateMethod · 0.65
HasSelectionMethod · 0.45
EndMethod · 0.45

Tested by

no test coverage detected