diff options
Diffstat (limited to 'core/Query.zig')
| -rw-r--r-- | core/Query.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Query.zig b/core/Query.zig index f9651faf..96047ca1 100644 --- a/core/Query.zig +++ b/core/Query.zig @@ -749,6 +749,8 @@ pub fn gather(p: *Pardes, names: *Names, source: Source, dir: []const u8, self: for (p.panes) |slot| { const other = slot orelse continue; if (other == self or other.query != null) continue; + // A picker's preview is no pane to go to (UX DESIGN O1). + if (other.file) |f| if (f.output) |o| if (o.from == .preview) continue; var buf: [4096 + 32]u8 = undefined; const what: []const u8 = if (other.file) |f| f.path else if (other.command) |c| c else other.cwdSlice(); const row = std.fmt.bufPrint(&buf, config.pane_addr ++ "{d} {s}", .{ other.serial, relative(what, dir) }) catch continue; |
