Ensure new partswitcher doesn't start on multipart
This commit is contained in:
parent
715c9a4797
commit
41390bc3e1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue