From 828bc7bad712417247654c9c6ce61dd7e458953d Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Tue, 4 Feb 2020 15:31:02 +0100 Subject: improve textbox --- src/ui.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ui.c') 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); } -- cgit v1.2.3-70-g09d2