diff options
Diffstat (limited to 'core/Query.zig')
| -rw-r--r-- | core/Query.zig | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/Query.zig b/core/Query.zig index e64f5b89..2b2abebb 100644 --- a/core/Query.zig +++ b/core/Query.zig @@ -1856,10 +1856,14 @@ pub fn land(p: *Pardes, id: usize, row: ?usize) void { // The preview shows it: promoted where it stands. if (previewOf(p, id)) |pid| if (std.mem.eql(u8, p.panes[pid].?.file.?.path, meta.path)) { promote(p, id, pid); + // Reading (jumps walk), it is this held list's reader (SPEC ยง6.1): + // its walk starts at its owner word, and the list's later jumps + // step it. + const pp = p.panes[pid].?; + if (pardes.Trail.reading(p, pp) and pp.trail.n == 0) pp.trail = pardes.Trail.reader(rp.serial, meta.path, meta.at); v.active = pid; if (q.source == .grep) { const a = parse(q.asked) orelse return; - const pp = p.panes[pid].?; pp.places.search(p, pp, .list, rp.serial, a.pat, true, null, false); } return; |
