From 363aab5cc19135599cae93f6c9c7abcd23c111c9 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 5 Jul 2019 12:21:12 -0400 Subject: Make :pipe command more generic --- widgets/account.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'widgets/account.go') 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) { -- cgit v1.2.3