aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffas <dev@jeffas.io>2019-09-05 13:11:52 +0100
committerDrew DeVault <sir@cmpwn.com>2019-09-11 11:26:27 -0400
commita441e3b3a55d11e7cc9444298051ff339d1b7519 (patch)
tree5ad61317236d97ec2a59326c3ed629f64861dc12
parente28f45b5aa923ade342835cf9ab1ba2e981bc061 (diff)
downloadaerc-a441e3b3a55d11e7cc9444298051ff339d1b7519.tar.gz
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.
-rw-r--r--aerc.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/aerc.go b/aerc.go
index 5ba9faba..1a321263 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
}