~sircmpwn/aerc

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] Fix segfault on delete

Devon Johnson
Details
Message ID
<20190910135340.921-1-djohnson1865@gmail.com>
DKIM signature
pass
Download raw message
Patch: +5 -1
diff --git a/widgets/account.go b/widgets/account.go
index 688b660..816d2ab 100644
--- a/widgets/account.go
+++ b/widgets/account.go
@@ -178,7 +178,11 @@ func (acct *AccountView) SelectedMessage() (*models.MessageInfo, error) {
	if len(acct.msglist.Store().Uids()) == 0 {
		return nil, errors.New("no message selected")
	}
	return acct.msglist.Selected(), nil
	msg := acct.msglist.Selected()
	if msg == nil {
		return nil, errors.New("message not loaded")
	}
	return msg, nil
}

func (acct *AccountView) SelectedMessagePart() *PartInfo {
-- 
2.21.0
Details
Message ID
<BWXBA6GUTS6H.1XK5QV1P9LWKJ@homura>
In-Reply-To
<20190910135340.921-1-djohnson1865@gmail.com> (view parent)
DKIM signature
pass
Download raw message
Thanks!

To git.sr.ht:~sircmpwn/aerc
   282dc44..572d9ff  master -> master