summaryrefslogtreecommitdiff
path: root/src/exec.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/exec.zig')
-rw-r--r--src/exec.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/exec.zig b/src/exec.zig
index b16c600c..2faf84de 100644
--- a/src/exec.zig
+++ b/src/exec.zig
@@ -467,6 +467,12 @@ pub fn applySettingBuiltin(p: *Pardes, setting: config.Runtime.Setting, arg: ?[]
colors.setThemeIndex(p, i);
return;
};
+ // A config line is not answered on screen (applyStartupConfig
+ // runs with announce off); a click or a ctl write is.
+ if (!p.announce) return;
+ var near: [96]u8 = undefined;
+ var text: [200]u8 = undefined;
+ return p.reportFailure(p.active, std.fmt.bufPrint(&text, "Theme: no theme \"{s}\"; like it: {s}; ThemeSel lists all", .{ want[0..@min(want.len, 40)], colors.themesNear(&near, want) }) catch "Theme: no such theme");
},
.font => {
if (comptime !font_picker) return;