summaryrefslogtreecommitdiff
path: root/core/File.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 02:02:19 -0300
committerGabriel Schneider <[email protected]>2026-11-20 02:32:57 -0300
commitc77e5a09af27976b2375a902ecb8efa428395a0c (patch)
treecb36b7b3c691b4904d2a1c2a182cd747e7c82602 /core/File.zig
parent866e9ed6762f42a32907d63d783464f2c90d5b85 (diff)
downloadpardes-c77e5a09af27976b2375a902ecb8efa428395a0c.tar.gz
pardes-c77e5a09af27976b2375a902ecb8efa428395a0c.zip
tape: the wrappers deleted, step 6c (reports/pardes-handle-69-design.md): a core's host is always its own (a replica's none), the tape only says which functions it has when the core holds another than the last said (noteHost, today's comparison, so a mask lands where it did) and a replica answers by that word (the bool replica, set by its first replay or its join; Tape.has), so Wrap's arity table, hostOf, wrap, the tape's vtable, resync's and Peers.stop's unwrap and apply's three hostOf go; the 9 presence questions are p.tape.has(p, .search); keeps_stopping and forTheView are lists of the table's names, a renamed field no longer compiling there; root.zig's machine scan names host.vtable and host.ctx, which only tape.zig's noteHost line names now (40 lines of core/ named the table at the base); the tape's bytes do not move (semantics 32640d4a722b811c unmoved, cross_replay both ways)
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/File.zig')
-rw-r--r--core/File.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/File.zig b/core/File.zig
index 75d8049b..325abee9 100644
--- a/core/File.zig
+++ b/core/File.zig
@@ -1579,7 +1579,7 @@ pub fn refreshHighlights(p: *Pardes) void {
// itself on the frame, a third of the work; the stretch around it
// comes painted ahead (paintAhead) where there are workers.
const far = f.highlights.len == 0 or need_end <= f.highlight_start or need_start >= f.highlight_start + f.highlights.len;
- const slack: usize = if (far and p.host.vtable.search != null) 0 else if (f.highlights.len == 0) 0 else pane.rows;
+ const slack: usize = if (far and p.tape.has(p, .search)) 0 else if (f.highlights.len == 0) 0 else pane.rows;
const whole = pane.colorAlgo() == .locations or f.tree_context;
// Painted ahead on a worker (Stream.paintAhead): taken, no parse.
if (!whole and pane.colorAlgo() == .source) if (Stream.takeAhead(p, pane.serial, f.revision, need_start, need_end)) |got| {