aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffas <dev@jeffas.io>2019-07-15 22:23:40 +0100
committerDrew DeVault <sir@cmpwn.com>2019-07-17 15:59:09 -0400
commit41390bc3e1e557eff15e8159767f206b3b74ea30 (patch)
treebc5a6ee38b074757e708279f56b7aeb069b59455
parent715c9a47972b34bfea17ea23a59f0ddd857add75 (diff)
Ensure new partswitcher doesn't start on multipart
-rw-r--r--widgets/msgviewer.go1
1 files changed, 1 insertions, 0 deletions
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