about summary refs log tree commit diff stats
path: root/commands/msgview/save.go
diff options
context:
space:
mode:
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 7f236cb..f3cbb70 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 {