summaryrefslogtreecommitdiff
path: root/src/Jump.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Jump.zig')
-rw-r--r--src/Jump.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Jump.zig b/src/Jump.zig
index 131d7e9d..2220f3c8 100644
--- a/src/Jump.zig
+++ b/src/Jump.zig
@@ -226,10 +226,10 @@ pub fn trackJump(p: *Pardes) void {
/// 9P exec. `jcur` is the entry where you are; the step moves it to the
/// entry it lands on, and the entries it passed over stay where they are.
///
-/// JumpScope file, from a pane with a file: the nearest entry that way in
-/// this pane, else in this file in any pane (a closed one's too), else,
-/// with none of this file left that way, the nearest of any file, as
-/// JumpScope all always takes. Forward mirrors Back, so it retraces a run
+/// From a pane with a file: the nearest entry that way in this pane, else
+/// in this file in any pane (a closed one's too), else, with none of this
+/// file left that way, the nearest of any file; from a terminal or a
+/// scratch, the nearest of any. Forward mirrors Back, so it retraces a run
/// of Backs inside one file step for step, and Forwards end, as they
/// always have, at the newest entry.
pub fn jumpBy(p: *Pardes, delta: i32) void {
@@ -239,7 +239,7 @@ pub fn jumpBy(p: *Pardes, delta: i32) void {
return p.setMessage(p.active, if (older) "Back: nothing further back" else "Forward: nothing further on");
var next = if (older) p.jumps.cur - 1 else p.jumps.cur + 1;
// A terminal or a scratch has no file to keep to: the step is global.
- if (p.settings.jump_scope == .file) if (p.panes[p.active]) |here| if (Pardes.recentPlace(here)) |place| if (place.path.len > 0) {
+ if (p.panes[p.active]) |here| if (Pardes.recentPlace(here)) |place| if (place.path.len > 0) {
const hash = if (jumpPath(here)) |path| std.hash.Wyhash.hash(0, path) else 0;
// The nearest of this pane's own wins over a nearer one of this
// file in another pane: the step does not move the keyboard.