aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TUI/windows.jai4
1 files changed, 3 insertions, 1 deletions
diff --git a/TUI/windows.jai b/TUI/windows.jai
index 24dbece..84dd271 100644
--- a/TUI/windows.jai
+++ b/TUI/windows.jai
@@ -169,7 +169,9 @@ OS_read_input :: (mode: Input_Mode) -> string {
if ReadConsoleA(stdin, temp.data, xx temp.count, *bytes_read) {
// TODO If the number of bytes_read is equal to the buffer size... we may have some more data to read?!
- // ---> To fix this, we should check the last read byte and see if it's a newline!
+ // ---> To fix this, we should check the last read byte and see if it's a newline (at least for HUMAN mode)!
+
+ // TODO Maybe pass the input result in the temporary memory (unless specified otherwise)?!
result.data = alloc(bytes_read);
result.count = bytes_read;