MCPcopy Create free account
hub / github.com/atomicgo/cursor / Top

Method Top

area.go:95–100  ·  view source on GitHub ↗

Top moves the cursor to the top of the area. This is done by calculating how many lines were moved by Up and Down.

()

Source from the content-addressed store, hash-verified

93// Top moves the cursor to the top of the area.
94// This is done by calculating how many lines were moved by Up and Down.
95func (area *Area) Top() {
96 if area.cursorPosY < area.height {
97 area.Up(area.height - area.cursorPosY)
98 area.cursorPosY = area.height
99 }
100}
101
102// StartOfLine moves the cursor to the start of the current line.
103func (area *Area) StartOfLine() {

Callers 1

mainFunction · 0.95

Calls 1

UpMethod · 0.95

Tested by

no test coverage detected