diff options
Diffstat (limited to 'lib/ui/textinput.go')
-rw-r--r-- | lib/ui/textinput.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ui/textinput.go b/lib/ui/textinput.go index 0a331dc4..8bc32b06 100644 --- a/lib/ui/textinput.go +++ b/lib/ui/textinput.go @@ -33,13 +33,13 @@ type TextInput struct { completeIndex int completeDelay time.Duration completeDebouncer *time.Timer - uiConfig config.UIConfig + uiConfig *config.UIConfig } // Creates a new TextInput. TextInputs will render a "textbox" in the entire // context they're given, and process keypresses to build a string from user // input. -func NewTextInput(text string, ui config.UIConfig) *TextInput { +func NewTextInput(text string, ui *config.UIConfig) *TextInput { return &TextInput{ cells: -1, text: []rune(text), @@ -383,7 +383,7 @@ type completions struct { onSelect func(int) onExec func() onStem func(string) - uiConfig config.UIConfig + uiConfig *config.UIConfig } func maxLen(ss []string) int { |