diff options
author | Robin Jarry <robin@jarry.cc> | 2022-07-18 12:54:55 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-07-23 22:00:21 +0200 |
commit | c841f36513ffdaffbf4b68e5f108c97a45745092 (patch) | |
tree | e339d287ba01f8a4b1e99c721d841015bb729317 /commands/msgview/next-part.go | |
parent | c49a065496ed232399b31506031711d4c1f802e0 (diff) | |
download | aerc-c841f36513ffdaffbf4b68e5f108c97a45745092.zip |
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/next-part.go')
-rw-r--r-- | commands/msgview/next-part.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msgview/next-part.go b/commands/msgview/next-part.go index f44ffab..652dccb 100644 --- a/commands/msgview/next-part.go +++ b/commands/msgview/next-part.go @@ -35,7 +35,7 @@ func (NextPrevPart) Execute(aerc *widgets.Aerc, args []string) error { return nextPrevPartUsage(args[0]) } } - mv, _ := aerc.SelectedTab().(*widgets.MessageViewer) + mv, _ := aerc.SelectedTabContent().(*widgets.MessageViewer) for ; n > 0; n-- { if args[0] == "prev-part" { mv.PreviousPart() |