summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-02-04 15:31:02 +0100
committerAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-02-04 15:31:02 +0100
commit828bc7bad712417247654c9c6ce61dd7e458953d (patch)
treed5ed6bacbff0f4c09d479ce7dd34cf90a5431d6a /src/ui.c
parent976f6e0df372ccced14f7baca903ec9e483c89ae (diff)
improve textbox
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui.c b/src/ui.c
index a06a4aa..fbda46c 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -93,6 +93,7 @@ void ui_set_textbox_text(textbox_state *textbox, char *text)
keyboard_set_input_text(global_ui_context.keyboard, text);
}
+ textbox->diff = 0;
string_copyn(textbox->buffer, text, textbox->max_len);
}