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:
parent
e28f45b5aa
commit
a441e3b3a5
1 changed files with 1 additions and 0 deletions
1
aerc.go
1
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue