From 7d9ae369774c471d4527e4a52e94585301cb751e Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Mon, 14 Mar 2022 12:49:09 +0100 Subject: [PATCH] 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 Signed-off-by: Koni Marti Acked-by: Robin Jarry --- commands/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/commands.go b/commands/commands.go index c23df7e..d0ff562 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