Sfoglia il codice sorgente

fix: file fuzzy search (#2409)

Aiden Cline 5 mesi fa
parent
commit
a97612287f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/tui/internal/components/dialog/complete.go

+ 1 - 1
packages/tui/internal/components/dialog/complete.go

@@ -94,7 +94,7 @@ func (c *completionDialogComponent) getAllCompletions(query string) tea.Cmd {
 		}
 
 		// If there's a query, fuzzy-rank within each provider, then concatenate by provider order
-		if query != "" && providersWithResults > 0 {
+		if query != "" && providersWithResults > 1 {
 			t := theme.CurrentTheme()
 			baseStyle := styles.NewStyle().Background(t.BackgroundElement())