aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msgview/save.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-07-18 12:54:55 +0200
committerRobin Jarry <robin@jarry.cc>2022-07-23 22:00:21 +0200
commitc841f36513ffdaffbf4b68e5f108c97a45745092 (patch)
treee339d287ba01f8a4b1e99c721d841015bb729317 /commands/msgview/save.go
parentc49a065496ed232399b31506031711d4c1f802e0 (diff)
downloadaerc-c841f36513ffdaffbf4b68e5f108c97a45745092.tar.gz
tabs: rename SelectedTab to SelectedTabContent
This function returns an ui.Drawable. Use a more explicit name. This prepares for adding a new SelectedTab function which will return an ui.Tab. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Koni Marti <koni.marti@gmail.com>
Diffstat (limited to 'commands/msgview/save.go')
-rw-r--r--commands/msgview/save.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/msgview/save.go b/commands/msgview/save.go
index 8aedd428..f27a68c6 100644
--- a/commands/msgview/save.go
+++ b/commands/msgview/save.go
@@ -99,9 +99,9 @@ func (Save) Execute(aerc *widgets.Aerc, args []string) error {
return err
}
- mv, ok := aerc.SelectedTab().(*widgets.MessageViewer)
+ mv, ok := aerc.SelectedTabContent().(*widgets.MessageViewer)
if !ok {
- return fmt.Errorf("SelectedTab is not a MessageViewer")
+ return fmt.Errorf("SelectedTabContent is not a MessageViewer")
}
if params.attachments {