From 5961587b227e5fa097fb033e32c29da08a23fb18 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 2 Aug 2026 17:17:35 -0300 Subject: tty/image: big harness + golden coverage pass --- src/config.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/config.zig') diff --git a/src/config.zig b/src/config.zig index 714ec177..cee3613e 100644 --- a/src/config.zig +++ b/src/config.zig @@ -159,6 +159,10 @@ pub const leader_path = paths: { table.set(.FontSel, "tf"); table.set(.Font, null); } + // PdfFit exists only in MuPDF builds (its run declaration deliberately + // changes shape when the feature is off), so name its toggle path through + // the same comptime branch rather than making feature-off enums mention it. + if (pardes.pdf_enabled) table.set(.PdfFit, "tz"); // ...and the property EnumArray.init used to give for free: every builtin // this build HAS is a builtin someone decided a path (or a null) for. for (std.enums.values(Builtin)) |b| if (table.get(b)) |p| { -- cgit v1.3