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

Method reverseIndex

internal/app/darktile/termutil/buffer.go:392–401  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

390}
391
392func (buffer *Buffer) reverseIndex() {
393
394 cursorVY := buffer.convertRawLineToViewLine(buffer.cursorPosition.Line)
395
396 if uint(cursorVY) == buffer.topMargin {
397 buffer.areaScrollDown(1)
398 } else if cursorVY > 0 {
399 buffer.cursorPosition.Line--
400 }
401}
402
403// write will write a rune to the terminal at the position of the cursor, and increment the cursor position
404func (buffer *Buffer) write(runes ...MeasuredRune) {

Callers 1

handleANSIMethod · 0.80

Calls 2

areaScrollDownMethod · 0.95

Tested by

no test coverage detected