aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/msgviewer.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/msgviewer.go
parentf9f523ad59491eda08003ce2ccc6d57d7f19ea1e (diff)
downloadaerc-363aab5cc19135599cae93f6c9c7abcd23c111c9.tar.gz
Make :pipe command more generic
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r--widgets/msgviewer.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 10c21820..b0ae79ed 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -227,7 +227,7 @@ func (mv *MessageViewer) ToggleHeaders() {
switcher.Invalidate()
}
-func (mv *MessageViewer) CurrentPart() *PartInfo {
+func (mv *MessageViewer) SelectedMessagePart() *PartInfo {
switcher := mv.switcher
part := switcher.parts[switcher.selected]
@@ -332,13 +332,6 @@ type PartViewer struct {
term *Terminal
}
-type PartInfo struct {
- Index []int
- Msg *types.MessageInfo
- Part *imap.BodyStructure
- Store *lib.MessageStore
-}
-
func NewPartViewer(conf *config.AercConfig,
store *lib.MessageStore, msg *types.MessageInfo,
part *imap.BodyStructure, showHeaders bool,