aboutsummaryrefslogtreecommitdiffstats
path: root/config
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 /config
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 'config')
-rw-r--r--config/config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/config.go b/config/config.go
index a6ee5785..ee8dc6a8 100644
--- a/config/config.go
+++ b/config/config.go
@@ -1017,14 +1017,14 @@ func (config AercConfig) mergeContextualUi(baseUi UIConfig,
return baseUi
}
-func (config AercConfig) GetUiConfig(params map[ContextType]string) UIConfig {
+func (config AercConfig) GetUiConfig(params map[ContextType]string) *UIConfig {
baseUi := config.Ui
for k, v := range params {
baseUi = config.mergeContextualUi(baseUi, k, v)
}
- return baseUi
+ return &baseUi
}
func (uiConfig UIConfig) GetStyle(so StyleObject) tcell.Style {