From c574a838fa89bf46bf7188442f400b206b04df95 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Fri, 19 Jun 2020 17:58:08 +0200 Subject: Remove hard coded bodystruct path everywhere Aerc usually used the path []int{1} if it didn't know what the proper path is. However this only works for multipart messages and breaks if it isn't one. This patch removes all the hard coding and extracts the necessary helpers to lib. --- widgets/msgviewer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets/msgviewer.go') diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go index f06b787..a7b9fd6 100644 --- a/widgets/msgviewer.go +++ b/widgets/msgviewer.go @@ -180,7 +180,7 @@ func createSwitcher(acct *AccountView, switcher *PartSwitcher, if len(msg.BodyStructure().Parts) == 0 { switcher.selected = 0 - pv, err := NewPartViewer(acct, conf, msg, msg.BodyStructure(), []int{1}) + pv, err := NewPartViewer(acct, conf, msg, msg.BodyStructure(), nil) if err != nil { return err } -- cgit 1.4.1-2-gfad0 value='switch'/> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/tools/iso/kernel.soso/random.h
blob: fae451f4aaa49bd7d9093e7826854ee1ebaa9878 (plain) (blame)
1
2
3
4
5
6