aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Burwell <ben@benburwell.com>2019-12-20 13:21:34 -0500
committerDrew DeVault <sir@cmpwn.com>2019-12-21 09:23:22 -0500
commit4d00a2b4d6ef3b4bea5c06553538b4010b7c09c2 (patch)
tree37336bb64096ed9aa850f2b35f1807c38df93dac
parent7160f98a9081bcab05904484eae790ec0a006b87 (diff)
Don't use current input as a possible completion
Now that completions are being shown in the popover, it doesn't make sense to show the unfinished command as a potential completion.
-rw-r--r--aerc.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/aerc.go b/aerc.go
index e8944d7..028cc6a 100644
--- a/aerc.go
+++ b/aerc.go
@@ -78,7 +78,6 @@ 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
}