aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--aerc.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/aerc.go b/aerc.go
index 12d94531..17b3c576 100644
--- a/aerc.go
+++ b/aerc.go
@@ -6,6 +6,7 @@ import (
"io/ioutil"
"log"
"os"
+ "sort"
"time"
"git.sr.ht/~sircmpwn/getopt"
@@ -79,6 +80,7 @@ func getCompletions(aerc *widgets.Aerc, cmd string) []string {
for _, set := range getCommands((*aerc).SelectedTab()) {
completions = append(completions, set.GetCompletions(aerc, cmd)...)
}
+ sort.Strings(completions)
return completions
}