diff options
Diffstat (limited to 'src/output_pane.zig')
| -rw-r--r-- | src/output_pane.zig | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/output_pane.zig b/src/output_pane.zig index 4b62a06e..49af86af 100644 --- a/src/output_pane.zig +++ b/src/output_pane.zig @@ -146,12 +146,14 @@ pub fn traits(o: Origin) Traits { // error, and a comptime-false `if` is the one form that is not // even analysed there. // - // Find (file names) and Grep (file contents) both list locations; - // no other builtin opens a buffer, and the day one does it lands - // here rather than in a call site. + // Find (file names), Grep (file contents), and PdfSections all + // list lookable locations. Feature-only rows remain branches so + // builds whose Builtin enum omits them never analyse the field. else => blk: { if (pardes.platform == .gui) if (b == .FontSel) break :blk .{ .name = config.fonts_buffer, .steps = true, .executes = true }; + if (pardes.pdf_enabled) if (b == .PdfSections) + break :blk .{ .name = config.pdf_sections_buffer, .steps = true }; break :blk .{ .name = config.search_buffer, .steps = true }; }, }, |
