diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-07-05 12:21:12 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-05 12:21:12 -0400 |
commit | 363aab5cc19135599cae93f6c9c7abcd23c111c9 (patch) | |
tree | 80cfeaf367bd1ac3077ec9dfb549a9dfc3b1f62f /widgets/account.go | |
parent | f9f523ad59491eda08003ce2ccc6d57d7f19ea1e (diff) | |
download | aerc-363aab5cc19135599cae93f6c9c7abcd23c111c9.tar.gz |
Make :pipe command more generic
Diffstat (limited to 'widgets/account.go')
-rw-r--r-- | widgets/account.go | 8 |
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) { |