summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pardes.zig7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pardes.zig b/src/pardes.zig
index 32de2f1b..682b0e3e 100644
--- a/src/pardes.zig
+++ b/src/pardes.zig
@@ -2935,8 +2935,11 @@ pub const Pardes = struct {
const ln = std.mem.trimEnd(u8, rows, "\n");
var hi: usize = 0;
while (hi < ln.len and look.isFileChar(ln[hi])) hi += 1;
- // push the jumplist the way helix does before navigating away
- pane.pinCursor();
+ // exactly what a `/` result row does when n steps onto it: look the
+ // `path:LINE:COL` token from the pane that asked, so placement,
+ // dedup-onto-an-open-pane and centering are the ONE look path.
+ // (helix would also push its jumplist here; pardes has none, so
+ // there is nothing to push — do not read this as one.)
return p.actOnSelection(.right, w.pane, ln[0..hi], null);
}