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.
This commit is contained in:
Jeffas 2019-09-05 13:11:52 +01:00 committed by Drew DeVault
parent e28f45b5aa
commit a441e3b3a5

View file

@ -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
}