diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-15 16:05:34 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-09-15 17:24:42 -0300 |
| commit | b292808d75078c6b121e4873b150574308bcdc6f (patch) | |
| tree | 5c213e1311de58f9259de5e416dfeba6b955b151 /src/panes.zig | |
| parent | 8ac4a48a2e8e66a9e72bcbc61c114be8db9215fd (diff) | |
| download | pardes-b292808d75078c6b121e4873b150574308bcdc6f.tar.gz pardes-b292808d75078c6b121e4873b150574308bcdc6f.zip | |
Use result metadata when walking output locations with n and N
Diffstat (limited to 'src/panes.zig')
| -rw-r--r-- | src/panes.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/panes.zig b/src/panes.zig index 09225068..886d4b28 100644 --- a/src/panes.zig +++ b/src/panes.zig @@ -2600,8 +2600,9 @@ pub const Output = struct { try openStepped(p, id, .{ .cmd = .ThemeSel }, content); } - pub fn isWalkRow(out: ?State, line: []const u8) bool { - const state = out orelse return true; + pub fn isWalkRow(file: *const File.State, row: usize, line: []const u8) bool { + const state = file.output orelse return true; + if (usesLocationsConfig(state.from)) return isResultRow(file, row); if (!std.meta.eql(state.from, Origin{ .cmd = .ThemeSel })) return true; // Section labels are for reading, not stops in the command walk. return std.mem.startsWith(u8, std.mem.trimStart(u8, line, " \t"), comptime config.Runtime.findAction(.theme).?.word ++ " "); |
