summaryrefslogtreecommitdiff
path: root/gui/src/Sources.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-13 10:09:48 -0300
committerGabriel Schneider <[email protected]>2026-11-13 10:09:48 -0300
commit771e377f6db9c3aed1ab85bc36a774f4176272cc (patch)
tree6fc14d41139976a514efc4817c8f7c64d9856719 /gui/src/Sources.zig
parent5c0230ea5a77f85de77ad4354788cd6c27aa1ef6 (diff)
downloadcomputeranim-771e377f6db9c3aed1ab85bc36a774f4176272cc.tar.gz
computeranim-771e377f6db9c3aed1ab85bc36a774f4176272cc.zip
debugger: decouple font zoom from window size and add restart
Diffstat (limited to 'gui/src/Sources.zig')
-rw-r--r--gui/src/Sources.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui/src/Sources.zig b/gui/src/Sources.zig
index 3bd4cbf..93e5b90 100644
--- a/gui/src/Sources.zig
+++ b/gui/src/Sources.zig
@@ -19,7 +19,7 @@ pub fn map(s: *Sources, gpa: std.mem.Allocator, io: std.Io, from: []const u8, to
s.clear(gpa);
}
-fn clear(s: *Sources, gpa: std.mem.Allocator) void {
+pub fn clear(s: *Sources, gpa: std.mem.Allocator) void {
for (s.files.items) |file| {
if (file.text) |t| t.deinit();
gpa.free(file.path);