Explorar o código

fix: file fuzzy search (#2409)

Aiden Cline hai 1 ano
pai
achega
a97612287f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 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()
 			t := theme.CurrentTheme()
 			baseStyle := styles.NewStyle().Background(t.BackgroundElement())
 			baseStyle := styles.NewStyle().Background(t.BackgroundElement())