()
| 255 | } |
| 256 | |
| 257 | func (m *agentPickerModel) moveDown() { |
| 258 | if m.cursor < len(m.choices)-1 { |
| 259 | m.cursor++ |
| 260 | } |
| 261 | m.clampOffset() |
| 262 | } |
| 263 | |
| 264 | // visibleCount returns the number of cards shown at once: all of them when |
| 265 | // they fit (or before the first WindowSizeMsg), otherwise as many as fit the |