···1818cursor_idx: usize = 0,
1919grapheme_count: usize = 0,
20202121+// TODO: an ArrayList is not great for this. orderedRemove is O(n) and we can
2222+// only remove one byte at a time. Make a bespoke ArrayList which allows removal
2323+// of a slice at a time, or truncating even would be nice
2124buf: std.ArrayList(u8),
22252326pub fn init(alloc: std.mem.Allocator) TextInput {