SetCursor selects a message index and maps it to the corresponding row.
(index int)
| 294 | |
| 295 | // SetCursor selects a message index and maps it to the corresponding row. |
| 296 | func (ml *messagesList) SetCursor(index int) { |
| 297 | ml.Model.SetCursor(ml.messageToRowIndex(index)) |
| 298 | } |
| 299 | |
| 300 | func (ml *messagesList) messageToRowIndex(messageIndex int) int { |
| 301 | ml.ensureRows() |
no test coverage detected