diff options
Diffstat (limited to 'commands/completion_helpers.go')
-rw-r--r-- | commands/completion_helpers.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/completion_helpers.go b/commands/completion_helpers.go index c7cb780b..e4556594 100644 --- a/commands/completion_helpers.go +++ b/commands/completion_helpers.go @@ -12,10 +12,10 @@ import ( ) // GetAddress uses the address-book-cmd for address completion -func GetAddress(aerc *app.Aerc, search string) []string { +func GetAddress(search string) []string { var options []string - cmd := aerc.SelectedAccount().AccountConfig().AddressBookCmd + cmd := app.SelectedAccount().AccountConfig().AddressBookCmd if cmd == "" { cmd = config.Compose.AddressBookCmd if cmd == "" { @@ -24,7 +24,7 @@ func GetAddress(aerc *app.Aerc, search string) []string { } cmpl := completer.New(cmd, func(err error) { - aerc.PushError( + app.PushError( fmt.Sprintf("could not complete header: %v", err)) log.Warnf("could not complete header: %v", err) }) |