summaryrefslogtreecommitdiff
path: root/core/ninep/ctl.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/ninep/ctl.zig')
-rw-r--r--core/ninep/ctl.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ninep/ctl.zig b/core/ninep/ctl.zig
index 2411b20f..80d1176c 100644
--- a/core/ninep/ctl.zig
+++ b/core/ninep/ctl.zig
@@ -555,7 +555,7 @@ fn checkBuiltin(p: *Pardes, req: Req, line: []const u8, scope: builtins.Scope) ?
if (arg.len == 0 and builtins.registry.requiresArg(b)) return refuse(p, req, "wrong #args in control message", line);
const setting = config.Settings.find(word) orelse return null;
const takes = switch (setting.action) {
- .theme => if (pardes.colors.themeIndex(arg) != null) true else {
+ .theme => if (pardes.colors.themeIndex(arg) != null or pardes.colors.successorOf(arg) != null) true else {
// `refuse` quotes the line after it, all in the 128 bytes an
// Rerror carries: the names get what is left.
const head = "bad value in control message; like it: ";