diff options
Diffstat (limited to 'src/Jump.zig')
| -rw-r--r-- | src/Jump.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Jump.zig b/src/Jump.zig index 10014e9e..2603d672 100644 --- a/src/Jump.zig +++ b/src/Jump.zig @@ -302,7 +302,7 @@ pub fn jumpBy(p: *Pardes, delta: i32) void { // stuck on one that cannot open. if (found == null or !Pardes.recentKeeps(found.?.path)) { var said: [recent_path_cap + 32]u8 = undefined; - if (found) |e| p.setMessage(v.active, std.fmt.bufPrint(&said, "{s}: deleted, skipped", .{e.path}) catch "deleted, skipped"); + if (found) |e| p.setMessage(v.active, std.fmt.bufPrint(&said, "{s}: deleted, skipped", .{e.path[0..@min(e.path.len, recent_path_cap)]}) catch unreachable); // cap and 18 fit const hash = j.path_hash; var w: usize = 0; var cur = v.jumps.cur; |
