This commit is contained in:
RadsammyT 2026-05-23 01:50:54 -04:00
commit 374a85d8a3
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -198,7 +198,7 @@ fn draw(self: *Lua) void {
cell.put(x, y) catch {};
if (self.lua_str) |str|
for (str, 0..) |c, i| {
Cell.init(c, 0x00FFFFFF, 0).put(i, @divFloor(self.terminal_buffer.height, 2)) catch {};
Cell.init(c, 0x00FFFFFF, 0).put(@divFloor(self.width, 2) - @divFloor(str.len, 2) + i, self.margin + 5) catch {};
};
}
}

View file

@ -29,7 +29,7 @@ const Doom = @import("animations/Doom.zig");
const DurFile = @import("animations/DurFile.zig");
const GameOfLife = @import("animations/GameOfLife.zig");
const Matrix = @import("animations/Matrix.zig");
const LuaAnim = @import("animations/Lua.zig");
const Lua = @import("animations/Lua.zig");
const auth = @import("auth.zig");
const InfoLine = @import("components/InfoLine.zig");
const Session = @import("components/Session.zig");
@ -1100,7 +1100,7 @@ pub fn main(init: std.process.Init) !void {
animation = dur.widget();
},
.lua => {
var lua = try LuaAnim.init(
var lua = try Lua.init(
state.io,
state.allocator,
&state.log_file,