summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-02 17:17:35 -0300
committerGabriel Schneider <[email protected]>2026-08-10 09:17:07 -0300
commit5961587b227e5fa097fb033e32c29da08a23fb18 (patch)
tree359883d5531e595d47f75824a77a0c1323973e2e /src/config.zig
parent487434a0b55fa7cf479f39481b51da0a7eda79e1 (diff)
downloadpardes-5961587b227e5fa097fb033e32c29da08a23fb18.tar.gz
pardes-5961587b227e5fa097fb033e32c29da08a23fb18.zip
tty/image: big harness + golden coverage pass
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig4
1 files changed, 4 insertions, 0 deletions
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| {