From 686276c66e461c4571b6ef9c83dd9983573c2a17 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Tue, 2 Feb 2021 12:52:22 +0200 Subject: InputWidget: Fixed cursor missing in an empty input widget --- src/ui/inputwidget.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src') 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) { void setMaxLen_InputWidget(iInputWidget *d, size_t maxLen) { d->maxLen = maxLen; d->mode = (maxLen == 0 ? insert_InputMode : overwrite_InputMode); - resize_Array(&d->text, maxLen); if (maxLen) { /* Set a fixed size. */ iBlock *content = new_Block(maxLen); -- cgit v1.2.3