mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-20 20:44:19 +02:00
nits
This commit is contained in:
parent
4d33aa54b9
commit
374a85d8a3
2 changed files with 3 additions and 3 deletions
|
|
@ -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 {};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue