aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit 6e11a020d4498f77c858af6b2635bc227537830e
parent 2925bdfd6c55de5e20cec9f689708d97855a1d08
Author: Tom Lebreux <tomlebreux@cock.li>
Date:   Tue, 16 Apr 2019 19:48:05 -0400

Fix segfault on :select-message for unloaded messages

Signed-off-by: Tom Lebreux <tomlebreux@cock.li>

Diffstat:
Mcommands/account/select-message.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/commands/account/select-message.go b/commands/account/select-message.go @@ -29,6 +29,9 @@ func SelectMessage(aerc *widgets.Aerc, args []string) error { if acct == nil { return errors.New("No account selected") } + if acct.Messages().Empty() { + return nil + } acct.Messages().Select(n) return nil }