aboutsummaryrefslogtreecommitdiff
path: root/widgets/account.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-07-05 12:21:12 -0400
committerDrew DeVault <sir@cmpwn.com>2019-07-05 12:21:12 -0400
commit363aab5cc19135599cae93f6c9c7abcd23c111c9 (patch)
tree80cfeaf367bd1ac3077ec9dfb549a9dfc3b1f62f /widgets/account.go
parentf9f523ad59491eda08003ce2ccc6d57d7f19ea1e (diff)
Make :pipe command more generic
Diffstat (limited to 'widgets/account.go')
-rw-r--r--widgets/account.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/widgets/account.go b/widgets/account.go
index 824f958..0948c5c 100644
--- a/widgets/account.go
+++ b/widgets/account.go
@@ -165,12 +165,16 @@ func (acct *AccountView) Store() *lib.MessageStore {
return acct.msglist.Store()
}
+func (acct *AccountView) SelectedAccount() *AccountView {
+ return acct
+}
+
func (acct *AccountView) SelectedMessage() *types.MessageInfo {
return acct.msglist.Selected()
}
-func (acct *AccountView) SelectedAccount() *AccountView {
- return acct
+func (acct *AccountView) SelectedMessagePart() *PartInfo {
+ return nil
}
func (acct *AccountView) onMessage(msg types.WorkerMessage) {