Merge branch 'master' of codeberg.org:fairyglade/ly

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion committed 2026-03-27 17:17:18 +01:00
commit e0a3364169
30 files changed
+376 -1

No files matched your search

+4 -1
View File
@@ -12,6 +12,8 @@ const VTable = struct {
calculate_timeout_fn: ?*const fn (ptr: *anyopaque, ctx: *anyopaque) anyerror!?usize,
};
pub var idCounter: u64 = 0;
id: u64,
display_name: []const u8,
keybinds: ?TerminalBuffer.KeybindMap,
@@ -101,8 +103,9 @@ pub fn init(
};
};
idCounter += 1;
return .{
.id = @intFromPtr(Impl.vtable.draw_fn),
.id = idCounter,
.display_name = display_name,
.keybinds = keybinds,
.pointer = pointer,