From afa3c28a8862f72cb489fe4781a0b75a8164a3d7 Mon Sep 17 00:00:00 2001 From: verse91 Date: Thu, 9 Apr 2026 15:35:17 +0700 Subject: [PATCH] fix(iris): hide history when delete whole line --- root/root.go | 4 ++++ 1 file changed, 4 insertions(+) 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{}