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

View file

@ -86,6 +86,7 @@ func NewMessageViewer(acct *AccountView, conf *config.AercConfig,
headers.AddChild(ui.NewFill(' ')).At(3, 0).Span(1, 2) headers.AddChild(ui.NewFill(' ')).At(3, 0).Span(1, 2)
switcher := &PartSwitcher{} switcher := &PartSwitcher{}
switcher.selected = -1
err := createSwitcher(switcher, conf, store, msg, conf.Viewer.ShowHeaders) err := createSwitcher(switcher, conf, store, msg, conf.Viewer.ShowHeaders)
if err != nil { if err != nil {
goto handle_error goto handle_error