summaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
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);
}