this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

text_input: add comment about ArrayList not being ideal

Siged-off-by: Tim Culverhouse <tim@timculverhouse.com>

+3
+3
src/widgets/TextInput.zig
··· 18 18 cursor_idx: usize = 0, 19 19 grapheme_count: usize = 0, 20 20 21 + // TODO: an ArrayList is not great for this. orderedRemove is O(n) and we can 22 + // only remove one byte at a time. Make a bespoke ArrayList which allows removal 23 + // of a slice at a time, or truncating even would be nice 21 24 buf: std.ArrayList(u8), 22 25 23 26 pub fn init(alloc: std.mem.Allocator) TextInput {