review pt 3

This commit is contained in:
RadsammyT 2026-06-17 14:17:01 -04:00
commit 7df3f9c3b2
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -29,7 +29,7 @@ info_line: *InfoLine,
fg: u32,
bg: u32,
lang: *Lang,
lang: Lang,
lua_error: bool = false,
lua_error_logged: bool = false,
@ -46,7 +46,7 @@ pub fn init(
info_line: *InfoLine,
fg: u32,
bg: u32,
lang: *Lang,
lang: Lang,
) !Lua {
var self: Lua = .{
.lua = try zlua.Lua.init(alloc),
@ -137,10 +137,10 @@ fn draw(self: *Lua) void {
self.lua_str = std.mem.concatWithSentinel(
self.allocator,
u8,
&.{ "Cannot call draw(): ", errorStr },
&.{ "cannot call draw(): ", errorStr },
0,
) catch unreachable;
self.log.err(self.io, "Lua", "Error (Cannot call draw()): {s}", .{errorStr}) catch unreachable;
self.log.err(self.io, "lua", "error (cannot call draw()): {s}", .{errorStr}) catch unreachable;
self.lua_error = true;
};
}

View file

@ -1111,7 +1111,7 @@ pub fn main(init: std.process.Init) !void {
&state.info_line,
state.config.error_fg,
state.config.error_bg,
&state.lang,
state.lang,
);
animation = lua.widget();
},