c26d08103b
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> |
||
---|---|---|
.. | ||
archive.go | ||
copy.go | ||
delete.go | ||
forward.go | ||
mark.go | ||
modify-labels.go | ||
move.go | ||
msg.go | ||
pipe.go | ||
read.go | ||
recall.go | ||
reply.go | ||
toggle-threads.go | ||
unsubscribe.go | ||
unsubscribe_test.go | ||
utils.go |