From 8663ac21d053c0e978688efe19dc5c71063d0f56 Mon Sep 17 00:00:00 2001 From: -k Date: Thu, 12 Sep 2024 11:14:41 -0700 Subject: [PATCH] fix: start with `updateStyle()` --- src/main.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.zig b/src/main.zig index 4201386..48932db 100644 --- a/src/main.zig +++ b/src/main.zig @@ -119,7 +119,7 @@ const Core = struct { return .{ .allocator = gpallocator }; } - fn start(self: *Core) void { + fn start(self: *Core, style: Style) !void { _ = tb.tb_init(); if (self.columns == null) { @@ -136,6 +136,7 @@ const Core = struct { self.setActive(true); self.updateTermSize(); + try self.updateStyle(style); } fn shutdown(self: *Core) void { @@ -519,7 +520,7 @@ pub fn main() !void { } if (!(main_cmd.checkFlag("version") or main_cmd.checkFlag("help") or main_cmd.checkFlag("usage"))) { - core.start(); + try core.start(handler.style); if (core.width < 4 or core.height < 2) { core.setActive(false);