aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/msgviewer.go
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-07-03 10:11:12 -0500
committerRobin Jarry <robin@jarry.cc>2022-07-03 21:32:18 +0200
commitd45c07eb6a0955a24efec7bd915ba19746042778 (patch)
treedc8fdd2ad6e7a99a9af458235bffc3071254fdfa /widgets/msgviewer.go
parent12e8217d1fa0f4c4c83eebcc7473ecb8f0c072ba (diff)
downloadaerc-d45c07eb6a0955a24efec7bd915ba19746042778.tar.gz
uiconfig: use pointer references to uiConfig
This patch changes references to uiConfig in function signatures and structs to be pointers. Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r--widgets/msgviewer.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index d88785ce..24ea2fe3 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -37,7 +37,7 @@ type MessageViewer struct {
grid *ui.Grid
switcher *PartSwitcher
msg lib.MessageView
- uiConfig config.UIConfig
+ uiConfig *config.UIConfig
}
type PartSwitcher struct {
@@ -523,7 +523,7 @@ type PartViewer struct {
source io.Reader
term *Terminal
grid *ui.Grid
- uiConfig config.UIConfig
+ uiConfig *config.UIConfig
links []string
}
@@ -837,7 +837,7 @@ type HeaderView struct {
Name string
Value string
ValueField ui.Drawable
- uiConfig config.UIConfig
+ uiConfig *config.UIConfig
}
func (hv *HeaderView) Draw(ctx *ui.Context) {