on main help sign in
fix: fix panic: `fuzzy` library doesn't like empty lists
commit5195f8a77837cffe70d03edbdbe3c6b400f86196 authorAndrey Nering <andreynering@users.noreply.github.com> dateFri 8 Aug 2025, 11:17 (1 year ago) parent1dc7f20
1 file changed+1−1
internal/tui/exp/list/filterable.go+1−1
internal/tui/exp/list/filterable.go+1−1
@@ -246,7 +246,7 @@ func (f *filterableList[T]) Filter(query string) tea.Cmd {
246246 }
247247
248248 f.selectedItem = ""
249− if query == "" {
249+ if query == "" || len(f.items) == 0 {
250250 return f.list.SetItems(f.items)
251251 }
252252