瀏覽代碼

fix: file fuzzy search (#2409)

Aiden Cline 7 月之前
父節點
當前提交
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 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())