summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
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| {