aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msgview/save.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-03-06 10:33:44 -0500
committerDrew DeVault <sir@cmpwn.com>2020-03-09 09:12:32 -0400
commitdf20f1cd03fcc369d3927b0936d0d126974f3b9a (patch)
treed2ff8a2511425cd0215e9b3c5365f8e1d7b084e6 /commands/msgview/save.go
parent4711933b41246629af3946ffc9fe0eeaa94e6639 (diff)
downloadaerc-df20f1cd03fcc369d3927b0936d0d126974f3b9a.tar.gz
Refactoring: remove store from PartInfo
Diffstat (limited to 'commands/msgview/save.go')
-rw-r--r--commands/msgview/save.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/msgview/save.go b/commands/msgview/save.go
index 7f236cb7..f3cbb70a 100644
--- a/commands/msgview/save.go
+++ b/commands/msgview/save.go
@@ -108,7 +108,8 @@ func (Save) Execute(aerc *widgets.Aerc, args []string) error {
}
ch := make(chan error, 1)
- pi.Store.FetchBodyPart(
+ store := mv.Store()
+ store.FetchBodyPart(
pi.Msg.Uid, pi.Msg.BodyStructure, pi.Index, func(reader io.Reader) {
f, err := os.Create(path)
if err != nil {