fix(iris): hide history when delete whole line

This commit is contained in:
verse91
2026-04-09 15:35:17 +07:00
parent 515d6f2a0a
commit afa3c28a88
+4
View File
@@ -242,6 +242,10 @@ func runWrapper() {
// mergeResults returns suggestions based on the active mode // mergeResults returns suggestions based on the active mode
func mergeResults(query string, mode string) []core.Suggestion { func mergeResults(query string, mode string) []core.Suggestion {
if query == "" {
return nil
}
if mode == "history" { if mode == "history" {
histResults, _ := intergration.SearchHistory(query) histResults, _ := intergration.SearchHistory(query)
cmdResults := []core.Suggestion{} cmdResults := []core.Suggestion{}