()
| 399 | } |
| 400 | |
| 401 | func (m *browseModel) selectedEntry() (extEntry, bool) { |
| 402 | if m.cursor < 0 || m.cursor >= len(m.filtered) { |
| 403 | return extEntry{}, false |
| 404 | } |
| 405 | return m.entries[m.filtered[m.cursor]], true |
| 406 | } |
| 407 | |
| 408 | func (m *browseModel) applyFilter() bool { |
| 409 | previous, hadPrevious := m.selectedEntry() |
no outgoing calls