(rawLine uint64)
| 242 | } |
| 243 | |
| 244 | func (buffer *Buffer) convertRawLineToViewLine(rawLine uint64) uint16 { |
| 245 | rawHeight := buffer.Height() |
| 246 | if int(buffer.viewHeight) > rawHeight { |
| 247 | return uint16(rawLine) |
| 248 | } |
| 249 | return uint16(int(rawLine) - (rawHeight - int(buffer.viewHeight+uint16(buffer.scrollLinesFromBottom)))) |
| 250 | } |
| 251 | |
| 252 | func (buffer *Buffer) GetVPosition() int { |
| 253 | result := int(uint(buffer.Height()) - uint(buffer.ViewHeight()) - buffer.scrollLinesFromBottom) |