~sircmpwn/aerc

msg/reply: scoping error of part slice for quoting v1 PROPOSED

Srivathsan Murali: 1
 msg/reply: scoping error of part slice for quoting

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/aerc/patches/10756/mbox | git am -3
Learn more about email & git

[PATCH] msg/reply: scoping error of part slice for quoting Export this patch

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
Thanks, merged.
Cheers,
Reto
View this thread in the archives