summaryrefslogtreecommitdiff
path: root/src/Jump.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 00:56:57 -0300
committerGabriel Schneider <[email protected]>2026-11-10 01:03:45 -0300
commit428898ae93543ab47f977b2f6f287a6bb9287625 (patch)
tree5ea2153fca819ce79f2688ed9ab74ea9da1e60bc /src/Jump.zig
parent4e5e1802f3f685a70740e9527a154544b3588e33 (diff)
downloadpardes-428898ae93543ab47f977b2f6f287a6bb9287625.tar.gz
pardes-428898ae93543ab47f977b2f6f287a6bb9287625.zip
kinds: a kind's place is its last call's outcome, on the tape and in Slot.where_text on every core (digested now), which Jump and Recent read: they asked the kind through a taped placeOf that a Shadow answered from the place it last replayed, so a call in a step of another view's (after a window joined) moved the PDF's place unseen and the window's Esc back to it guessed 16:0.000000 1.000 against the authority's 16:0.000000 0.045
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/Jump.zig')
-rw-r--r--src/Jump.zig8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Jump.zig b/src/Jump.zig
index 11c7da6e..06cf8388 100644
--- a/src/Jump.zig
+++ b/src/Jump.zig
@@ -51,12 +51,8 @@ const Kind = @import("Kind.zig");
fn kindPlace(pane: *Pane) ?Kind.Buf(32) {
const slot = pane.addon orelse return null;
if (!slot.live) return null;
- var buf: [32]u8 = undefined;
- const w = Kind.placeOf(slot, &buf);
- if (w.len == 0) return null;
- var out: Kind.Buf(32) = .{};
- out.set(w);
- return out;
+ // As its kind's last call left it: the same on every core.
+ return if (slot.where_text.len == 0) null else slot.where_text;
}
/// A place's first number: a kind's line (a PDF's page).