()
| 580 | } |
| 581 | |
| 582 | func (m *browseModel) pageSize() int { |
| 583 | if m.mainHeight() <= 1 { |
| 584 | return 1 |
| 585 | } |
| 586 | return max(m.mainHeight()/2, 1) |
| 587 | } |
| 588 | |
| 589 | func (m *browseModel) moveByPage(direction int) tea.Cmd { |
| 590 | if len(m.filtered) == 0 { |
no test coverage detected