summaryrefslogtreecommitdiff
path: root/src/Core.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/Core.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/Core.zig')
-rw-r--r--src/Core.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Core.zig b/src/Core.zig
index 2e17b495..86916f9e 100644
--- a/src/Core.zig
+++ b/src/Core.zig
@@ -686,8 +686,7 @@ pub const RecentPlace = struct { path: []const u8, line: u32, col: u32, aline: u
pub fn recentPlace(pane: *const Pane) ?RecentPlace {
if (recentDot(pane)) |d| return .{ .path = d.path, .line = d.line, .col = d.col, .aline = d.aline, .acol = d.acol };
if (pane.addon) |k| if (k.path.len > 0) {
- var buf: [32]u8 = undefined;
- const line = Jump.firstNumber(pardes.Kind.placeOf(@constCast(k), &buf));
+ const line = Jump.firstNumber(k.where_text.slice());
return .{ .path = k.path, .line = line, .col = @intFromBool(line > 0) };
};
return null;