diff --git a/root/root.go b/root/root.go index 9dabcc2..7a37876 100644 --- a/root/root.go +++ b/root/root.go @@ -242,6 +242,10 @@ func runWrapper() { // mergeResults returns suggestions based on the active mode func mergeResults(query string, mode string) []core.Suggestion { + if query == "" { + return nil + } + if mode == "history" { histResults, _ := intergration.SearchHistory(query) cmdResults := []core.Suggestion{}