From df20f1cd03fcc369d3927b0936d0d126974f3b9a Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 6 Mar 2020 10:33:44 -0500 Subject: Refactoring: remove store from PartInfo --- commands/msg/pipe.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'commands/msg') diff --git a/commands/msg/pipe.go b/commands/msg/pipe.go index 001577c..9491cf5 100644 --- a/commands/msg/pipe.go +++ b/commands/msg/pipe.go @@ -126,7 +126,8 @@ func (Pipe) Execute(aerc *widgets.Aerc, args []string) error { }) } else if pipePart { p := provider.SelectedMessagePart() - p.Store.FetchBodyPart(p.Msg.Uid, p.Msg.BodyStructure, p.Index, func(reader io.Reader) { + store := provider.Store() + store.FetchBodyPart(p.Msg.Uid, p.Msg.BodyStructure, p.Index, func(reader io.Reader) { if background { doExec(reader) } else { -- cgit 1.4.1-2-gfad0