From d45c07eb6a0955a24efec7bd915ba19746042778 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Sun, 3 Jul 2022 10:11:12 -0500 Subject: 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 Acked-by: Robin Jarry --- config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config') 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 { -- cgit