File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -368,19 +368,18 @@ func (m multiSelectModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
368
368
for _ , option := range options {
369
369
option .chosen = false
370
370
}
371
+ }
372
+ }
371
373
372
- default :
373
- oldSearch := m .search .Value ()
374
- m .search , cmd = m .search .Update (msg )
375
-
376
- // If the search query has changed then we need to ensure
377
- // the cursor is still pointing at a valid option.
378
- if m .search .Value () != oldSearch {
379
- options := m .filteredOptions ()
380
- if m .cursor > len (options )- 1 {
381
- m .cursor = max (0 , len (options )- 1 )
382
- }
383
- }
374
+ oldSearch := m .search .Value ()
375
+ m .search , cmd = m .search .Update (msg )
376
+
377
+ // If the search query has changed then we need to ensure
378
+ // the cursor is still pointing at a valid option.
379
+ if m .search .Value () != oldSearch {
380
+ options := m .filteredOptions ()
381
+ if m .cursor > len (options )- 1 {
382
+ m .cursor = max (0 , len (options )- 1 )
384
383
}
385
384
}
386
385
You can’t perform that action at this time.
0 commit comments