Commit 87f89de
Eric Bower
·
2026-04-04 22:32:38 -0400 EDT
parent c6956f8
fix: kitty up arrow detection
1 files changed,
+1,
-1
+1,
-1
| ... | ... | @@ -218,7 +218,7 @@ pub fn isCtrlBackslash(buf: []const u8) bool { | |
| 218 | 218 | ||
| 219 | 219 | /// Detects vt100 or kitty keyboard protocol escape sequence for up arrow. | |
| 220 | 220 | pub fn isUpArrow(buf: []const u8) bool { | |
| 221 | - | return std.mem.eql(u8, buf, "\x1b[A") or std.mem.eql(u8, buf, "\x1b[26;1u"); | |
| 221 | + | return std.mem.eql(u8, buf, "\x1b[A") or std.mem.eql(u8, buf, "\x1b[1;1:1A"); | |
| 222 | 222 | } | |
| 223 | 223 | ||
| 224 | 224 | fn isKeyPressed(buf: []const u8, expected_key: u32, expected_mods: u32) bool { |