diff options
author | Koni Marti <koni.marti@gmail.com> | 2022-03-14 12:49:09 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-03-14 22:57:18 +0100 |
commit | 7d9ae369774c471d4527e4a52e94585301cb751e (patch) | |
tree | 76083d04a25235767b4e4d9719f1f4ce0d392ab7 | |
parent | 74366d895d5c5cce5c14424926bb5de229894884 (diff) | |
download | aerc-7d9ae369774c471d4527e4a52e94585301cb751e.tar.gz |
bindings: fix panic for terminal keybind
Fix panic in the GetCompletions function when using the keybind for the
terminal command.
Fixes: https://todo.sr.ht/~rjarry/aerc/29
Reported-by: inwit <inwit@sindominio.net>
Signed-off-by: Koni Marti <koni.marti@gmail.com>
Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r-- | commands/commands.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/commands.go b/commands/commands.go index c23df7e3..d0ff562f 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -104,7 +104,7 @@ func (cmds *Commands) GetCompletions(aerc *widgets.Aerc, cmd string) []string { // complete available commands names := cmds.Names() - options := FilterList(names, args[0], "", aerc.SelectedAccount().UiConfig().FuzzyComplete) + options := FilterList(names, args[0], "", aerc.SelectedAccountUiConfig().FuzzyComplete) if len(options) > 0 { return options |