summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.zig9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/config.zig b/src/config.zig
index a3cf659c..f1da742a 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -1487,8 +1487,8 @@ pub const Runtime = struct {
try out.print("ThemeFile {s}\n", .{path})
else
try out.print("{s} {s}\n", .{ setting.word, context.theme_name }),
- .window_opacity => try out.print("{s} {d}\n", .{ setting.word, state.window_opacity }),
- .window_blur => try out.print("{s} {d}\n", .{ setting.word, state.window_blur }),
+ // A number in a field named as its action.
+ inline .window_opacity, .window_blur, .inactive_dim, .callstack_depth, .tab, .search_rows, .grip_width => |_, tag| try out.print("{s} {d}\n", .{ setting.word, @field(state, @tagName(tag)) }),
.dump_dir => {
const dir = if (state.dump_dir.len > 0) state.dump_dir.get() else context.default_dump_dir;
if (dir.len > 0) try out.print("{s} {s}\n", .{ setting.word, dir }) else try out.print("# {s} (none)\n", .{setting.word});
@@ -1536,11 +1536,6 @@ pub const Runtime = struct {
},
.lift => try out.print("{s} {s}\n", .{ setting.word, @tagName(state.lift) }),
.motion => try out.print("{s} {s}\n", .{ setting.word, @tagName(state.motion) }),
- .inactive_dim => try out.print("{s} {d}\n", .{ setting.word, state.inactive_dim }),
- .callstack_depth => try out.print("{s} {d}\n", .{ setting.word, state.callstack_depth }),
- .tab => try out.print("{s} {d}\n", .{ setting.word, state.tab }),
- .search_rows => try out.print("{s} {d}\n", .{ setting.word, state.search_rows }),
- .grip_width => try out.print("{s} {d}\n", .{ setting.word, state.grip_width }),
};
if (context.locations.len > 0) try out.print("LocationsConfig {s}\n", .{context.locations});