diff options
author | Jeffas <dev@jeffas.io> | 2019-07-15 22:23:40 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-07-17 15:59:09 -0400 |
commit | 41390bc3e1e557eff15e8159767f206b3b74ea30 (patch) | |
tree | bc5a6ee38b074757e708279f56b7aeb069b59455 | |
parent | 715c9a47972b34bfea17ea23a59f0ddd857add75 (diff) | |
download | aerc-41390bc3e1e557eff15e8159767f206b3b74ea30.tar.gz |
Ensure new partswitcher doesn't start on multipart
-rw-r--r-- | widgets/msgviewer.go | 1 |
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 |