~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] msg/reply: scoping error of part slice for quoting

Details
Message ID
<20200522100523.1422481-1-sri@vathsan.com>
DKIM signature
pass
Download raw message
Patch: +1 -1
part was left unassigned in the outer scope. Leading no errors while
quoting.
---

 commands/msg/reply.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands/msg/reply.go b/commands/msg/reply.go
index 762c15ea45ed..8e0feef97802 100644
--- a/commands/msg/reply.go
+++ b/commands/msg/reply.go
@@ -168,7 +168,7 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error {
		part := findPlaintext(msg.BodyStructure, nil)
		if part == nil {
			//mkey... let's get the first thing that isn't a container
			part := findFirstNonMultipart(msg.BodyStructure, nil)
			part = findFirstNonMultipart(msg.BodyStructure, nil)
			if part == nil {
				// give up, use whatever is first
				part = []int{1}
-- 
2.26.2
Details
Message ID
<20200522130310.elxuwfjxrlnsi4bj@feather.localdomain>
In-Reply-To
<20200522100523.1422481-1-sri@vathsan.com> (view parent)
DKIM signature
pass
Download raw message
Thanks, merged.
Cheers,
Reto
Review patch Export thread (mbox)