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

Method End

internal/action/actions.go:1695–1700  ·  view source on GitHub ↗

End moves the viewport to the end of the buffer

()

Source from the content-addressed store, hash-verified

1693
1694// End moves the viewport to the end of the buffer
1695func (h *BufPane) End() bool {
1696 v := h.GetView()
1697 v.StartLine = h.Scroll(h.SLocFromLoc(h.Buf.End()), -h.BufView().Height+1)
1698 h.SetView(v)
1699 return true
1700}
1701
1702// PageUp scrolls the view up a page
1703func (h *BufPane) PageUp() bool {

Callers 15

ScrollAdjustMethod · 0.45
ScrollReachedEndMethod · 0.45
CursorToViewBottomMethod · 0.45
MoveCursorDownMethod · 0.45
SelectLeftMethod · 0.45
SelectRightMethod · 0.45
EndOfLineMethod · 0.45
SelectToEndOfLineMethod · 0.45
paragraphNextMethod · 0.45
CursorEndMethod · 0.45
SelectToEndMethod · 0.45
DeleteMethod · 0.45

Calls 5

GetViewMethod · 0.65
ScrollMethod · 0.65
SLocFromLocMethod · 0.65
BufViewMethod · 0.65
SetViewMethod · 0.65

Tested by

no test coverage detected