diff options
Diffstat (limited to 'core/Query.zig')
| -rw-r--r-- | core/Query.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Query.zig b/core/Query.zig index e8011a1f..ce83a6ac 100644 --- a/core/Query.zig +++ b/core/Query.zig @@ -719,7 +719,7 @@ fn startSource(p: *Pardes, id: usize, q: *Query, source: Source, owner_id: ?usiz .recent => { var out: std.Io.Writer.Allocating = .init(gpa); defer out.deinit(); - var lines = std.mem.splitScalar(u8, pardes.tape.authority(recentRows, .{ p, &out }), '\n'); + var lines = std.mem.splitScalar(u8, p.tape.authority(recentRows, .{ p, &out }), '\n'); while (lines.next()) |ln| { if (ln.len == 0) continue; const rel = relative(ln, dir); @@ -742,7 +742,7 @@ fn startSource(p: *Pardes, id: usize, q: *Query, source: Source, owner_id: ?usiz // `(closed)` and dimmer (makeNameRows): Enter brings one back // where it was. Its name alone is matched, not the word. The // session's, which a replica has from the authority. - for (pardes.tape.authority(Store.closedNames, .{p})) |c| { + for (p.tape.authority(Store.closedNames, .{p})) |c| { var buf: [4096 + 48]u8 = undefined; const row = std.fmt.bufPrint(&buf, config.pane_addr ++ "{d} {s}" ++ closed_word, .{ c.serial, relative(c.name, dir) }) catch continue; const key_at = std.mem.indexOfScalar(u8, row, ' ').? + 1; @@ -1668,7 +1668,7 @@ fn displayPreview(p: *Pardes, qid: usize, path: []const u8, at: look.Spot) void const f = &pane.file.?; if (!std.mem.eql(u8, f.path, path)) { if (exec.kindOf(p.tape, path)) |kind| if (kind != .file) return; - const bytes = pardes.tape.site(.preview, p.gpa, filesystem.read, .{ p, path }) catch return; + const bytes = p.tape.site(.preview, p.gpa, filesystem.read, .{ p, path }) catch return; if (std.mem.indexOfScalar(u8, bytes[0..@min(bytes.len, 8000)], 0) != null) { p.gpa.free(bytes); return; |
