aerc/widgets
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
..
account-wizard.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
account.go dirtree: implement foldable tree for directory list 2022-02-23 21:09:01 +01:00
aerc.go aerc: always check SelectedAccount return value 2022-02-25 13:56:53 +01:00
common.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
compose.go aerc: always check SelectedAccount return value 2022-02-25 13:56:53 +01:00
dirlist.go ui: make dirlist-delay context-aware 2022-02-24 17:45:56 +01:00
dirtree.go dirtree: implement foldable tree for directory list 2022-02-23 21:09:01 +01:00
exline.go completions: add support for completing multiple addresses 2022-01-07 13:54:10 +01:00
getpasswd.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
headerlayout.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
msglist.go aerc: always check SelectedAccount return value 2022-02-25 13:56:53 +01:00
msgviewer.go style: customize vertical and horizontal border characters 2021-11-30 15:05:33 +01:00
pgpinfo.go pgp: update openpgp packages (go-crypto and go-pgpmail) 2022-01-07 13:45:34 +01:00
providesmessage.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
selector.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
spinner.go go.mod: change base git url 2021-11-05 10:21:45 +01:00
status.go search/filter: display in extra status 2022-02-23 11:27:19 +01:00
tabhost.go Implement style configuration. 2020-08-06 21:42:06 +02:00
terminal.go terminal: fix nil pointer dereference in pty.Getsize 2022-01-19 22:16:36 +01:00