summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/config.zig b/src/config.zig
index 41a70e4a..3eedf707 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -164,10 +164,15 @@ 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");
+ // The PDF toggles exist only in MuPDF builds (their run declarations
+ // deliberately change shape when the feature is off), so name their paths
+ // through the same comptime branch rather than making feature-off enums
+ // mention them. `ti` was the unused slot in the display-toggle group;
+ // PdfFit's established `tz` stays unchanged.
+ if (pardes.pdf_enabled) {
+ table.set(.PdfTint, "ti");
+ 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| {