Ensure new partswitcher doesn't start on multipart

This commit is contained in:
Jeffas 2019-07-15 22:23:40 +01:00 committed by Drew DeVault
parent 715c9a4797
commit 41390bc3e1
1 changed files with 1 additions and 0 deletions

View File

@ -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