(lines uint16)
| 126 | } |
| 127 | |
| 128 | func (buffer *Buffer) areaScrollDown(lines uint16) { |
| 129 | |
| 130 | // NOTE: bottom is exclusive |
| 131 | top, bottom := buffer.getAreaScrollRange() |
| 132 | |
| 133 | for i := bottom; i > top; { |
| 134 | i-- |
| 135 | if i >= top+uint64(lines) { |
| 136 | buffer.lines[i] = buffer.lines[i-uint64(lines)] |
| 137 | } else { |
| 138 | buffer.lines[i] = newLine() |
| 139 | } |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | func (buffer *Buffer) areaScrollUp(lines uint16) { |
| 144 |
no test coverage detected