summaryrefslogtreecommitdiff
path: root/core/Trail.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Trail.zig')
-rw-r--r--core/Trail.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Trail.zig b/core/Trail.zig
index 69f149df..01d650a5 100644
--- a/core/Trail.zig
+++ b/core/Trail.zig
@@ -212,7 +212,11 @@ pub fn keep(pane: *Pane) void {
}
/// An edit of file `f`: the panes showing it are held from now on (ยง6.5).
+/// Only where a pane could read: a session whose jumps walk, a file
+/// (isFile), so that an edit anywhere else (an output's, a 9P append's
+/// under `Jumps new-pane`) costs nothing past these checks.
pub fn edited(p: *Pardes, f: *const panes.File.State) void {
+ if (p.settings.jumps != .walk or f.output != null or f.listing != null or f.pager or f.mini != null) return;
for (p.panes) |slot| {
const pane = slot orelse continue;
if (pane.trail.held) continue;