kitty kbd: progressive enhancement = mode off by one

Fixes #2161
This commit is contained in:
Mitchell Hashimoto
2024-09-03 11:57:52 -07:00
parent 12efa8ec24
commit e014c68cf0

View File

@ -1226,9 +1226,9 @@ pub fn Stream(comptime Handler: type) type {
1;
const mode: kitty.KeySetMode = switch (number) {
0 => .set,
1 => .@"or",
2 => .not,
1 => .set,
2 => .@"or",
3 => .not,
else => {
log.warn("invalid setKittyKeyboard command: {}", .{input});
break :set;