diff options
Diffstat (limited to 'TUI/module.jai')
| -rw-r--r-- | TUI/module.jai | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/TUI/module.jai b/TUI/module.jai index 5e19e4f..5157ba2 100644 --- a/TUI/module.jai +++ b/TUI/module.jai @@ -239,13 +239,13 @@ get_str :: (count_limit: int = -1, allocator: Allocator = temp) -> string { start :: () { if initialized == true return; - write_strings(Commands.HideCursor, Commands.SaveCursorPosition, Commands.EnterAlternateBuffer, Commands.SetUTF8); - OS_prepare_terminal(); - input_string.data = input_buffer.data; input_string.count = 0; input_override = xx Keys.None; + write_strings(Commands.HideCursor, Commands.SaveCursorPosition, Commands.EnterAlternateBuffer, Commands.SetUTF8); + OS_prepare_terminal(); + initialized = true; } |
