Up moves the cursor of the area up one line.
(n int)
| 59 | |
| 60 | // Up moves the cursor of the area up one line. |
| 61 | func (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. |
| 73 | func (area *Area) Down(n int) { |
no outgoing calls
no test coverage detected