summaryrefslogtreecommitdiff
path: root/src/Core.zig
diff options
context:
space:
mode:
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;