diff options
Diffstat (limited to 'commands/msgview/open.go')
-rw-r--r-- | commands/msgview/open.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/msgview/open.go b/commands/msgview/open.go index b4675434..d4eacd4c 100644 --- a/commands/msgview/open.go +++ b/commands/msgview/open.go @@ -33,7 +33,8 @@ func (Open) Execute(aerc *widgets.Aerc, args []string) error { mv := aerc.SelectedTab().(*widgets.MessageViewer) p := mv.SelectedMessagePart() - p.Store.FetchBodyPart(p.Msg.Uid, p.Msg.BodyStructure, p.Index, func(reader io.Reader) { + store := mv.Store() + store.FetchBodyPart(p.Msg.Uid, p.Msg.BodyStructure, p.Index, func(reader io.Reader) { tmpFile, err := ioutil.TempFile(os.TempDir(), "aerc-") if err != nil { aerc.PushError(" " + err.Error()) |