MCPcopy
hub / github.com/liamg/darktile / areaScrollDown

Method areaScrollDown

internal/app/darktile/termutil/buffer.go:128–141  ·  view source on GitHub ↗
(lines uint16)

Source from the content-addressed store, hash-verified

126}
127
128func (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
143func (buffer *Buffer) areaScrollUp(lines uint16) {
144

Callers 2

reverseIndexMethod · 0.95
csiScrollDownHandlerMethod · 0.80

Calls 2

getAreaScrollRangeMethod · 0.95
newLineFunction · 0.85

Tested by

no test coverage detected