summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-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