diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-07-03 10:11:12 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-07-03 21:32:18 +0200 |
commit | d45c07eb6a0955a24efec7bd915ba19746042778 (patch) | |
tree | dc8fdd2ad6e7a99a9af458235bffc3071254fdfa /widgets/compose.go | |
parent | 12e8217d1fa0f4c4c83eebcc7473ecb8f0c072ba (diff) | |
download | aerc-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/compose.go')
-rw-r--r-- | widgets/compose.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/compose.go b/widgets/compose.go index cbd4266c..da2bde33 100644 --- a/widgets/compose.go +++ b/widgets/compose.go @@ -284,7 +284,7 @@ func (c *Composer) Encrypt() bool { func (c *Composer) updateCrypto() error { if c.crypto == nil { uiConfig := c.acct.UiConfig() - c.crypto = newCryptoStatus(&uiConfig) + c.crypto = newCryptoStatus(uiConfig) } var err error // Check if signKey is empty so we only run this once @@ -924,11 +924,11 @@ type headerEditor struct { header *mail.Header focused bool input *ui.TextInput - uiConfig config.UIConfig + uiConfig *config.UIConfig } func newHeaderEditor(name string, h *mail.Header, - uiConfig config.UIConfig) *headerEditor { + uiConfig *config.UIConfig) *headerEditor { he := &headerEditor{ input: ui.NewTextInput("", uiConfig), name: name, |