fix(iris): hide history when delete whole line
This commit is contained in:
@@ -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{}
|
||||||
|
|||||||
Reference in New Issue
Block a user