diff options
| author | Aldrik Ramaekers <aldrik.ramaekers@protonmail.com> | 2020-02-04 15:31:02 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik.ramaekers@protonmail.com> | 2020-02-04 15:31:02 +0100 |
| commit | 828bc7bad712417247654c9c6ce61dd7e458953d (patch) | |
| tree | d5ed6bacbff0f4c09d479ce7dd34cf90a5431d6a | |
| parent | 976f6e0df372ccced14f7baca903ec9e483c89ae (diff) | |
improve textbox
| -rw-r--r-- | src/ui.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |
