summaryrefslogtreecommitdiff
path: root/src/ui/inputwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/inputwidget.c')
-rw-r--r--src/ui/inputwidget.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ui/inputwidget.c b/src/ui/inputwidget.c
index 62f0341e..ae73c9c9 100644
--- a/src/ui/inputwidget.c
+++ b/src/ui/inputwidget.c
@@ -177,7 +177,6 @@ const iString *text_InputWidget(const iInputWidget *d) {
177void setMaxLen_InputWidget(iInputWidget *d, size_t maxLen) { 177void setMaxLen_InputWidget(iInputWidget *d, size_t maxLen) {
178 d->maxLen = maxLen; 178 d->maxLen = maxLen;
179 d->mode = (maxLen == 0 ? insert_InputMode : overwrite_InputMode); 179 d->mode = (maxLen == 0 ? insert_InputMode : overwrite_InputMode);
180 resize_Array(&d->text, maxLen);
181 if (maxLen) { 180 if (maxLen) {
182 /* Set a fixed size. */ 181 /* Set a fixed size. */
183 iBlock *content = new_Block(maxLen); 182 iBlock *content = new_Block(maxLen);