summaryrefslogtreecommitdiff
path: root/src/ui/inputwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-02 12:52:22 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-02 12:52:22 +0200
commit686276c66e461c4571b6ef9c83dd9983573c2a17 (patch)
treefc19754ae53e9b90ba7dfbeb206dad0d89134b12 /src/ui/inputwidget.c
parentb868d336e7facc4b227ae3aff056188ca226167d (diff)
InputWidget: Fixed cursor missing in an empty input widget
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);