summaryrefslogtreecommitdiff
path: root/test/panes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-21 21:42:33 -0300
committerGabriel Schneider <[email protected]>2026-10-22 10:03:15 -0300
commit3643635640e97eb2e43730d58fcc46214e21851e (patch)
treea096772d1709492a624bb90f06fdc98a60d142ac /test/panes.zig
parent4e89db185fa4e3bfe4358d2da3b76fad0cc7e547 (diff)
downloadpardes-3643635640e97eb2e43730d58fcc46214e21851e.tar.gz
pardes-3643635640e97eb2e43730d58fcc46214e21851e.zip
Window mode: pick the pane to focus with an outline or a label
Diffstat (limited to 'test/panes.zig')
-rw-r--r--test/panes.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/panes.zig b/test/panes.zig
index c8f4b7eb..e98e3a54 100644
--- a/test/panes.zig
+++ b/test/panes.zig
@@ -384,6 +384,7 @@ const TagNavigationTests = struct {
fn window(p: *Pardes, letter: u21) void {
p.update(.{ .key = .{ .cp = 'w', .ctrl = true } });
key(p, letter);
+ key(p, Key.enter);
}
test "a tag remembers its cursor, starts on Save, and a click moves it" {
@@ -4718,12 +4719,14 @@ test "cancelled normal gestures leave no count or subprefix after mouse and focu
.focus, .last => {
p.update(.{ .key = .{ .cp = 'w', .ctrl = true } });
p.update(.{ .key = .{ .cp = 'l' } });
+ p.update(.{ .key = .{ .cp = Key.enter } });
try std.testing.expectEqual(other, p.active);
if (gesture == .last) {
p.update(.{ .key = .{ .cp = Key.escape } });
} else {
p.update(.{ .key = .{ .cp = 'w', .ctrl = true } });
p.update(.{ .key = .{ .cp = 'h' } });
+ p.update(.{ .key = .{ .cp = Key.enter } });
}
try std.testing.expectEqual(@as(usize, 0), p.active);
},