()
| 390 | } |
| 391 | |
| 392 | func (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 |
| 404 | func (buffer *Buffer) write(runes ...MeasuredRune) { |
no test coverage detected