diff options
Diffstat (limited to 'core/look.zig')
| -rw-r--r-- | core/look.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/look.zig b/core/look.zig index 1d296775..53c26943 100644 --- a/core/look.zig +++ b/core/look.zig @@ -1489,6 +1489,8 @@ pub fn lookAt(p: *Pardes, id: usize, operand_raw: []const u8) void { // What is looked for is the place without its trailing `:`, `@p33:` // and `a.txt:` as much as `a.txt:2:`. const found = resolveLookTarget(p, id, trimmed, &realbuf); + // `path@rev`, `path@rev:12`: no file, a file at a revision (jj.zig). + if (found == .none and @import("jj.zig").looked(p, id, Pardes.paneDir(pane), pl.path, pl.at)) return; // A line past the end of an open pane is a miss (the target's line is // already clamped, so the one written is asked). if (found == .pane and found.pane.id < MAX_PANES) if (p.panes[found.pane.id]) |shown| { |
