summary refs log tree commit diff stats
path: root/lib/ui
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-05-16 10:49:50 -0400
committerDrew DeVault <sir@cmpwn.com>2019-05-16 10:49:50 -0400
commit2b3e123cb86f9b4c5853e31d9e76c2b0d083f90a (patch)
tree2845d2e611a4abd2e6561c31b522178176c75f82 /lib/ui
parentb0bf09b98fc038c1bc9921d568c06260b7448a15 (diff)
downloadaerc-2b3e123cb86f9b4c5853e31d9e76c2b0d083f90a.tar.gz
Let caller pass in custom headers to compose
Diffstat (limited to 'lib/ui')
-rw-r--r--lib/ui/textinput.go4
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)
 }
='#n56'>56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170