diff --git a/src/animations/Lua.zig b/src/animations/Lua.zig index cfcfb47..309963e 100644 --- a/src/animations/Lua.zig +++ b/src/animations/Lua.zig @@ -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; }; } diff --git a/src/main.zig b/src/main.zig index cf87637..487e54a 100644 --- a/src/main.zig +++ b/src/main.zig @@ -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(); },