summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--textscreen/txt_inputbox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/textscreen/txt_inputbox.c b/textscreen/txt_inputbox.c
index 59d62da3..16e423d1 100644
--- a/textscreen/txt_inputbox.c
+++ b/textscreen/txt_inputbox.c
@@ -257,6 +257,7 @@ txt_inputbox_t *TXT_NewInputBox(char **value, int size)
inputbox->value = value;
inputbox->size = size;
inputbox->buffer = malloc(size + 1);
+ inputbox->editing = 0;
return inputbox;
}