fix length not being set for new buffers
This commit is contained in:
parent
fffa58a286
commit
9b6c56c41a
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user