fix length not being set for new buffers

This commit is contained in:
Matthew 2025-10-18 10:10:31 +11:00
parent fffa58a286
commit 9b6c56c41a

View File

@ -134,6 +134,7 @@ Init(FlatBuffer* fb, u8[] data, u8[] file_name)
fb.file_name = file_name;
fb.line_count = CountLF(data);
fb.length = data.length;
fb.sel = -1;
fb.sel_mode = SM.None;