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

Method Start

internal/action/actions.go:1687–1692  ·  view source on GitHub ↗

Start moves the viewport to the start of the buffer

()

Source from the content-addressed store, hash-verified

1685
1686// Start moves the viewport to the start of the buffer
1687func (h *BufPane) Start() bool {
1688 v := h.GetView()
1689 v.StartLine = display.SLoc{0, 0}
1690 h.SetView(v)
1691 return true
1692}
1693
1694// End moves the viewport to the end of the buffer
1695func (h *BufPane) End() bool {

Callers 15

MoveCursorUpMethod · 0.45
CursorDownMethod · 0.45
StartOfTextToggleMethod · 0.45
StartOfLineMethod · 0.45
SelectToStartOfLineMethod · 0.45
paragraphPreviousMethod · 0.45
SelectToStartMethod · 0.45
BackspaceMethod · 0.45
SearchMethod · 0.45
findMethod · 0.45
FindNextMethod · 0.45

Calls 2

GetViewMethod · 0.65
SetViewMethod · 0.65

Tested by

no test coverage detected