From d9204131aa986fb4df704d157973cd565383a4f3 Mon Sep 17 00:00:00 2001 From: AnErrupTion Date: Fri, 30 May 2025 09:24:07 +0200 Subject: [PATCH] Fix brightness up key not working (closes #763) Signed-off-by: AnErrupTion --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index bd89b15..6ddd1ff 100644 --- a/src/main.zig +++ b/src/main.zig @@ -376,7 +376,7 @@ pub fn main() !void { const sleep_len = try TerminalBuffer.strWidth(lang.sleep); const brightness_down_key = if (config.brightness_down_key) |key| try std.fmt.parseInt(u8, key[1..], 10) else null; const brightness_down_len = try TerminalBuffer.strWidth(lang.brightness_down); - const brightness_up_key = if (config.brightness_down_key) |key| try std.fmt.parseInt(u8, key[1..], 10) else null; + const brightness_up_key = if (config.brightness_up_key) |key| try std.fmt.parseInt(u8, key[1..], 10) else null; const brightness_up_len = try TerminalBuffer.strWidth(lang.brightness_up); var event: termbox.tb_event = undefined;