diff options
Diffstat (limited to 'test/session.zig')
| -rw-r--r-- | test/session.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/session.zig b/test/session.zig index bf118533..1cbee9df 100644 --- a/test/session.zig +++ b/test/session.zig @@ -288,11 +288,11 @@ pub const Session = struct { .addon => pardesOf(s).perform(e), // A kind's job, here and at once, as the host's worker would; // held while a test holds them (`hold_jobs`). - .job => |j| if (!s.hold_jobs) pardesOf(s).perform(e) else if (pardes.host_io.KindJob.take(pardesOf(s), j.pane, j.serial, j.token)) |taken| s.held.append(pardesOf(s).gpa, taken) catch taken.drop(), + .job => |j| if (!s.hold_jobs) pardesOf(s).perform(e) else if (pardes.host_io.KindJob.take(pardesOf(s), j.pane.index(), j.serial, j.token)) |taken| s.held.append(pardesOf(s).gpa, taken) catch taken.drop(), .lsp => |q| if (s.languages) |io| s.askServer(io, .{ .id = q.id, .kind = q.kind, .pane = q.pane, .offset = q.offset, .arg = q.arg.slice() }), .watch => |w| { if (s.watch_fd < 0) s.watch_fd = pardes.file_watch.init(true); - if (s.watch_fd >= 0) _ = pardes.file_watch.applyEffect(pardesOf(s), std.Io.Threaded.global_single_threaded.io(), s.watch_fd, &s.watches, w.pane, w.on, w.mode); + if (s.watch_fd >= 0) _ = pardes.file_watch.applyEffect(pardesOf(s), std.Io.Threaded.global_single_threaded.io(), s.watch_fd, &s.watches, w.pane.index(), w.on, w.mode); }, else => {}, }; |
