diff --git a/src/gui.zig b/src/gui.zig index 199085f..afd3510 100644 --- a/src/gui.zig +++ b/src/gui.zig @@ -7547,7 +7547,7 @@ pub const TextEntryWidget = struct { } // insert - std.mem.copy(u8, self.text[sel.cursor..], new); + std.mem.copy(u8, self.text[sel.cursor..], new[0..new_len]); sel.cursor += new_len; sel.end = sel.cursor; sel.start = sel.cursor; diff --git a/todo.txt b/todo.txt index 6e82671..a7ad9ec 100644 --- a/todo.txt +++ b/todo.txt @@ -6,9 +6,6 @@ add horizontal scrolling - ScrollArea: don't make boxes and bars if there's no scrolling in that direction - also need option to have scrolling but not show bars? For single line text entry -make horizontal scrolling default to none -- ScrollInfo - test a scrollArea with horizontal scrolling but no vertical scrolling - can you expand vertically?