diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-05-16 10:49:50 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-05-16 10:49:50 -0400 |
commit | 2b3e123cb86f9b4c5853e31d9e76c2b0d083f90a (patch) | |
tree | 2845d2e611a4abd2e6561c31b522178176c75f82 /lib/ui | |
parent | b0bf09b98fc038c1bc9921d568c06260b7448a15 (diff) | |
download | aerc-2b3e123cb86f9b4c5853e31d9e76c2b0d083f90a.tar.gz |
Let caller pass in custom headers to compose
Diffstat (limited to 'lib/ui')
-rw-r--r-- | lib/ui/textinput.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ui/textinput.go b/lib/ui/textinput.go index 9d2cdc7..4a5308e 100644 --- a/lib/ui/textinput.go +++ b/lib/ui/textinput.go @@ -40,6 +40,10 @@ func (ti *TextInput) String() string { return string(ti.text) } +func (ti *TextInput) Set(value string) { + ti.text = []rune(value) +} + func (ti *TextInput) Invalidate() { ti.DoInvalidate(ti) } |