From 41390bc3e1e557eff15e8159767f206b3b74ea30 Mon Sep 17 00:00:00 2001 From: Jeffas Date: Mon, 15 Jul 2019 22:23:40 +0100 Subject: Ensure new partswitcher doesn't start on multipart --- widgets/msgviewer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index f15fbae..7623228 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -86,6 +86,7 @@ func NewMessageViewer(acct *AccountView, conf *config.AercConfig, headers.AddChild(ui.NewFill(' ')).At(3, 0).Span(1, 2) switcher := &PartSwitcher{} + switcher.selected = -1 err := createSwitcher(switcher, conf, store, msg, conf.Viewer.ShowHeaders) if err != nil { goto handle_error -- cgit 1.4.1-2-gfad0