소스 검색

fix: file fuzzy search (#2409)

Aiden Cline 1 년 전
부모
커밋
a97612287f
1개의 변경된 파일과 1개의 추가작업 그리고 1개의 파일을 삭제
  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())