summaryrefslogtreecommitdiff
path: root/core/ninep
diff options
context:
space:
mode:
Diffstat (limited to 'core/ninep')
-rw-r--r--core/ninep/ctl.zig4
-rw-r--r--core/ninep/tree.zig5
2 files changed, 9 insertions, 0 deletions
diff --git a/core/ninep/ctl.zig b/core/ninep/ctl.zig
index e47aec94..637999c2 100644
--- a/core/ninep/ctl.zig
+++ b/core/ninep/ctl.zig
@@ -1747,6 +1747,8 @@ test "a look whose pane is refused a place fails with that alone, not a missing
// A screen with rows for one pane only.
const p = try Pardes.init(gpa, .{ .tty_only = true, .cols = 80, .rows = 5 });
defer p.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ p.settings.jumps = .@"new-pane";
while (p.nextEffect()) |_| {}
_ = try p.setTestFile("x\n");
while (p.nextEffect()) |_| {}
@@ -2126,6 +2128,8 @@ test "with no pane at all, the root look opens its file and the root exec runs i
if (pardes.Term.ops == null) return error.SkipZigTest; // a command pane
const p = try withFile(testing.allocator, "x\n");
defer p.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ p.settings.jumps = .@"new-pane";
var tmp = testing.tmpDir(.{});
defer tmp.cleanup();
try tmp.dir.writeFile(testing.io, .{ .sub_path = "f.txt", .data = "file\n" });
diff --git a/core/ninep/tree.zig b/core/ninep/tree.zig
index 01cfe297..4feb0153 100644
--- a/core/ninep/tree.zig
+++ b/core/ninep/tree.zig
@@ -2013,6 +2013,11 @@ test "random placements, refused or not, leave no pane under its tag and two row
const rows = r.intRangeAtMost(u16, 6, 40);
const p = try pardes.Pardes.init(testing.allocator, .{ .tty_only = true, .cols = r.intRangeAtMost(u16, 60, 240), .rows = rows });
defer p.deinit();
+ // Placements as a Look made them before the walk: `Jumps new-pane`
+ // (SPEC §6.6). Under the walk a step in place can wrap its tag in a
+ // column with no rows to give (seed 109): the trail's give-way,
+ // not a placement's refusal (Trail.lift lifts it when there are).
+ p.settings.jumps = .@"new-pane";
while (p.nextEffect()) |_| {}
_ = try p.setTestFile("x\n");
while (p.nextEffect()) |_| {}