aerc/commands/compose
Robin Jarry c26d08103b aerc: always check SelectedAccount return value
aerc.SelectedAccount() is used in lots of places. Most of them without
checking the return value.

In some cases, the currently selected tab is not related to any account
(widget.Terminal for example). This can lead to unexpected crashes when
accessing account specific configuration.

When possible, return an error when no account is currently selected.
If no error can be returned, fallback to non-account specific
configuration.

Signed-off-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Koni Marti <koni.marti@gmail.com>
2022-02-25 13:56:53 +01:00
..
abort.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
attach.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
cc-bcc.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
compose.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
detach.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
edit.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
encrypt.go pgp: PGP/MIME encryption for outgoing emails 2022-01-07 13:45:34 +01:00
header.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
next-field.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
postpone.go aerc: always check SelectedAccount return value 2022-02-25 13:56:53 +01:00
send.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
sign.go pgp: PGP/MIME signing for outgoing emails 2022-01-07 13:45:34 +01:00