From a441e3b3a55d11e7cc9444298051ff339d1b7519 Mon Sep 17 00:00:00 2001 From: Jeffas Date: Thu, 5 Sep 2019 13:11:52 +0100 Subject: [PATCH] Add initial command to end of completions This means that if the user cycles through all completions then they will see the initial string they entered. --- aerc.go | 1 + 1 file changed, 1 insertion(+) diff --git a/aerc.go b/aerc.go index 5ba9fab..1a32126 100644 --- a/aerc.go +++ b/aerc.go @@ -78,6 +78,7 @@ func getCompletions(aerc *widgets.Aerc, cmd string) []string { for _, set := range getCommands((*aerc).SelectedTab()) { completions = append(completions, set.GetCompletions(aerc, cmd)...) } + completions = append(completions, cmd) return completions }