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/exline.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/exline.go')
-rw-r--r-- | widgets/exline.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/exline.go b/widgets/exline.go index 0d245fba..4a4b6559 100644 --- a/widgets/exline.go +++ b/widgets/exline.go @@ -22,7 +22,7 @@ func NewExLine(conf *config.AercConfig, cmd string, commit func(cmd string), fin tabcomplete func(cmd string) ([]string, string), cmdHistory lib.History) *ExLine { - input := ui.NewTextInput("", conf.Ui).Prompt(":").Set(cmd) + input := ui.NewTextInput("", &conf.Ui).Prompt(":").Set(cmd) if conf.Ui.CompletionPopovers { input.TabComplete(tabcomplete, conf.Ui.CompletionDelay) } @@ -43,7 +43,7 @@ func NewExLine(conf *config.AercConfig, cmd string, commit func(cmd string), fin func NewPrompt(conf *config.AercConfig, prompt string, commit func(text string), tabcomplete func(cmd string) ([]string, string)) *ExLine { - input := ui.NewTextInput("", conf.Ui).Prompt(prompt) + input := ui.NewTextInput("", &conf.Ui).Prompt(prompt) if conf.Ui.CompletionPopovers { input.TabComplete(tabcomplete, conf.Ui.CompletionDelay) } |