diff options
Diffstat (limited to 'test/behaviour/keys.zig')
| -rw-r--r-- | test/behaviour/keys.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/behaviour/keys.zig b/test/behaviour/keys.zig index 8bf187f8..cfa76aa5 100644 --- a/test/behaviour/keys.zig +++ b/test/behaviour/keys.zig @@ -9,6 +9,8 @@ const window = "\x17"; // Ctrl-w test "keys: a prompt's entry and cancellation leave the tag, the body and its cursor as they were" { var s = try Session.initFile(std.testing.allocator, "one\ntwo\n"); defer s.deinit(); + // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5). + try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n"); const n = try s.focused(); const tag = s.at("/pane/{d}/tag", .{n}); const dot = s.at("/pane/{d}/dot", .{n}); @@ -108,6 +110,8 @@ test "keys: a count or a prefix a click or a change of pane cancels leaves nothi errdefer std.debug.print("\nkeys={s} gesture={s}\n", .{ typed, @tagName(gesture) }); var s = try Session.initFile(std.testing.allocator, "abcdefghij\n"); defer s.deinit(); + // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5). + try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n"); const n = try s.focused(); try s.write("/ctl", "Newcol\n"); const other = try s.newPane(); |
