diff options
-rw-r--r-- | src/main.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig index 2a4c39d..7cfb0f6 100644 --- a/src/main.zig +++ b/src/main.zig @@ -140,6 +140,8 @@ pub fn main() !void { .Debug, .ReleaseSafe => debug_allocator.allocator(), .ReleaseFast, .ReleaseSmall => smp_allocator, }; + zsanett.init(); + defer zsanett.deinit(); var tty = try Tty.init(); defer tty.deinit(); @@ -163,8 +165,6 @@ pub fn main() !void { try vx.enterAltScreen(tty.anyWriter()); try vx.queryTerminal(tty.anyWriter(), 1 * ns_per_s); // for alt screen - zsanett.init(); - defer zsanett.deinit(); try zsanett.def("kay/path", args[1], "Path to file."); try zsanett.def("kay/env", Environment{ .allocator = allocator, |