aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg')
-rw-r--r--commands/msg/forward.go2
-rw-r--r--commands/msg/pipe.go2
-rw-r--r--commands/msg/recall.go2
-rw-r--r--commands/msg/reply.go2
-rw-r--r--commands/msg/unsubscribe.go4
-rw-r--r--commands/msg/utils.go2
6 files changed, 7 insertions, 7 deletions
diff --git a/commands/msg/forward.go b/commands/msg/forward.go
index 8fc34aa7..ad80fea3 100644
--- a/commands/msg/forward.go
+++ b/commands/msg/forward.go
@@ -60,7 +60,7 @@ func (forward) Execute(aerc *widgets.Aerc, args []string) error {
return errors.New("Options -A and -F are mutually exclusive")
}
- widget := aerc.SelectedTab().(widgets.ProvidesMessage)
+ widget := aerc.SelectedTabContent().(widgets.ProvidesMessage)
acct := widget.SelectedAccount()
if acct == nil {
return errors.New("No account selected")
diff --git a/commands/msg/pipe.go b/commands/msg/pipe.go
index cab109e0..35ee05bc 100644
--- a/commands/msg/pipe.go
+++ b/commands/msg/pipe.go
@@ -63,7 +63,7 @@ func (Pipe) Execute(aerc *widgets.Aerc, args []string) error {
return errors.New("Usage: pipe [-mp] <cmd> [args...]")
}
- provider := aerc.SelectedTab().(widgets.ProvidesMessage)
+ provider := aerc.SelectedTabContent().(widgets.ProvidesMessage)
if !pipeFull && !pipePart {
if _, ok := provider.(*widgets.MessageViewer); ok {
pipePart = true
diff --git a/commands/msg/recall.go b/commands/msg/recall.go
index b59372a6..3c9f0f2d 100644
--- a/commands/msg/recall.go
+++ b/commands/msg/recall.go
@@ -51,7 +51,7 @@ func (Recall) Execute(aerc *widgets.Aerc, args []string) error {
return errors.New("Usage: recall [-f]")
}
- widget := aerc.SelectedTab().(widgets.ProvidesMessage)
+ widget := aerc.SelectedTabContent().(widgets.ProvidesMessage)
acct := widget.SelectedAccount()
if acct == nil {
return errors.New("No account selected")
diff --git a/commands/msg/reply.go b/commands/msg/reply.go
index 30b09b62..a1254a12 100644
--- a/commands/msg/reply.go
+++ b/commands/msg/reply.go
@@ -55,7 +55,7 @@ func (reply) Execute(aerc *widgets.Aerc, args []string) error {
}
}
- widget := aerc.SelectedTab().(widgets.ProvidesMessage)
+ widget := aerc.SelectedTabContent().(widgets.ProvidesMessage)
acct := widget.SelectedAccount()
if acct == nil {
diff --git a/commands/msg/unsubscribe.go b/commands/msg/unsubscribe.go
index ed6ad4f7..126a23db 100644
--- a/commands/msg/unsubscribe.go
+++ b/commands/msg/unsubscribe.go
@@ -37,7 +37,7 @@ func (Unsubscribe) Execute(aerc *widgets.Aerc, args []string) error {
if len(args) != 1 {
return errors.New("Usage: unsubscribe")
}
- widget := aerc.SelectedTab().(widgets.ProvidesMessage)
+ widget := aerc.SelectedTabContent().(widgets.ProvidesMessage)
msg, err := widget.SelectedMessage()
if err != nil {
return err
@@ -135,7 +135,7 @@ func parseUnsubscribeMethods(header string) (methods []*url.URL) {
}
func unsubscribeMailto(aerc *widgets.Aerc, u *url.URL) error {
- widget := aerc.SelectedTab().(widgets.ProvidesMessage)
+ widget := aerc.SelectedTabContent().(widgets.ProvidesMessage)
acct := widget.SelectedAccount()
if acct == nil {
return errors.New("No account selected")
diff --git a/commands/msg/utils.go b/commands/msg/utils.go
index 212fc75a..4ce82a74 100644
--- a/commands/msg/utils.go
+++ b/commands/msg/utils.go
@@ -14,7 +14,7 @@ type helper struct {
}
func newHelper(aerc *widgets.Aerc) *helper {
- return &helper{aerc.SelectedTab().(widgets.ProvidesMessages)}
+ return &helper{aerc.SelectedTabContent().(widgets.ProvidesMessages)}
}
func (h *helper) markedOrSelectedUids() ([]uint32, error) {