summaryrefslogtreecommitdiff
path: root/core/replica.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/replica.zig')
-rw-r--r--core/replica.zig7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/replica.zig b/core/replica.zig
index 2a66cc3d..97cbaeee 100644
--- a/core/replica.zig
+++ b/core/replica.zig
@@ -5687,6 +5687,8 @@ test "a replica joined after a pane closed: the session's jump to it, its Panes
const gpa = std.testing.allocator;
const a = try Authority.init(gpa, .{ .cols = 80, .rows = 24, .file = "mise.toml" }, TestHost.host());
defer a.deinit();
+ // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6).
+ a.core.settings.jumps = .@"new-pane";
// A file looked at and closed: a jump to it, Recent's, a closed pane.
var cwd: [std.Io.Dir.max_path_bytes]u8 = undefined;
var line: [std.Io.Dir.max_path_bytes + 32]u8 = undefined;
@@ -7335,6 +7337,7 @@ const may_wait = [_]Wait{
.{ .what = "*", .on = .shell, .stop = "pty_write", .why = "a key into a shell's program" },
// A file from the session's disk (P14).
.{ .what = "Look *", .on = .any, .stop = "resolve", .why = "a name looked for on the session's disk" },
+ .{ .what = "Look *", .on = .any, .stop = "read_file", .why = "a jump from a held pane (a kind's, a listing's) opens its reader on the file, read from the session's disk: a reading pane showing it is not focused (pick-ui SPEC §6.1)" },
.{ .what = "LookNext", .on = .any, .stop = "resolve", .why = "a Look's walk: each word asked of the disk" },
.{ .what = "LookPrev", .on = .any, .stop = "resolve", .why = "a Look's walk: each word asked of the disk" },
.{ .what = "Mini *", .on = .any, .stop = "resolve", .why = "a file opened by name, from the session's disk" },
@@ -7998,7 +8001,7 @@ test "a far client's drag in a kind's pane it grabbed, the pane since too short
}
for ([_]pardes.Event{
.{ .mouse = .{ .button = .left, .kind = .press, .col = col, .row = row } },
- .{ .resize = .{ .cols = 80, .rows = 4 } },
+ .{ .resize = .{ .cols = 80, .rows = 5 } },
.{ .mouse = .{ .button = .left, .kind = .drag, .col = col, .row = 30 } },
.{ .mouse = .{ .button = .left, .kind = .release, .col = col, .row = 30 } },
}) |ev| {
@@ -8395,7 +8398,7 @@ test "a far client's replay of a message its session's host stamped takes the se
r.confirm(u);
r.settle();
try agrees(a, r);
- try std.testing.expect(try shows(r.core(), "--:--:-- yanked x"));
+ try std.testing.expectEqualStrings("--:--:-- yanked x", r.core().messages.headline().?.text.slice());
}
// A script's `pty/run` in a shell (ninep/pty.zig): the open, the line, the