msg/reply: scoping error of part slice for quoting

part was left unassigned in the outer scope. Leading to errors while
quoting.
This commit is contained in:
Srivathsan Murali 2020-05-22 12:05:23 +02:00 committed by Reto Brunner
parent a7986f5706
commit 83e7c7661d
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error {
part := findPlaintext(msg.BodyStructure, nil) part := findPlaintext(msg.BodyStructure, nil)
if part == nil { if part == nil {
//mkey... let's get the first thing that isn't a container //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 { if part == nil {
// give up, use whatever is first // give up, use whatever is first
part = []int{1} part = []int{1}