mirror of
https://github.com/fairyglade/ly.git
synced 2026-06-23 16:02:00 +00:00
Handle termbox2 errors
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -87,7 +87,7 @@ fn draw(self: *Session) void {
|
||||
}
|
||||
|
||||
fn handle(self: *Session, maybe_key: ?keyboard.Key) !void {
|
||||
self.label.handle(maybe_key);
|
||||
try self.label.handle(maybe_key);
|
||||
}
|
||||
|
||||
fn addedSession(env: Env, user_list: *UserList) void {
|
||||
@@ -119,5 +119,5 @@ fn drawItem(label: *EnvironmentLabel, env: Env, x: usize, y: usize, width: usize
|
||||
width,
|
||||
label.fg,
|
||||
label.bg,
|
||||
);
|
||||
) catch {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user