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

Method Up

area.go:61–70  ·  view source on GitHub ↗

Up moves the cursor of the area up one line.

(n int)

Source from the content-addressed store, hash-verified

59
60// Up moves the cursor of the area up one line.
61func (area *Area) Up(n int) {
62 if n > 0 {
63 if area.cursorPosY+n > area.height {
64 n = area.height - area.cursorPosY
65 }
66
67 area.cursor.Up(n)
68 area.cursorPosY += n
69 }
70}
71
72// Down moves the cursor of the area down one line.
73func (area *Area) Down(n int) {

Callers 6

TopMethod · 0.95
StartOfLineUpMethod · 0.95
UpAndClearMethod · 0.95
MoveMethod · 0.95
mainFunction · 0.95
UpFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected