summaryrefslogtreecommitdiff
path: root/src/host/Console.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/Console.zig')
-rw-r--r--src/host/Console.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/Console.zig b/src/host/Console.zig
index 3046132..b1915bb 100644
--- a/src/host/Console.zig
+++ b/src/host/Console.zig
@@ -270,7 +270,7 @@ pub fn execute(self: *Console, host: *Host, line: []const u8, now: u64) ![]const
const leaf = host.state.layout.find(path) orelse return error.UnknownField;
if (rest.len == 0) return error.ExpectedValue;
try stop(host);
- try fields.set(leaf, host.live(), std.mem.trim(u8, rest, " "));
+ if (leaf.whole()) try fields.setRow(host.state.layout, host.live(), path, rest) else try fields.set(leaf, host.live(), std.mem.trim(u8, rest, " "));
self.print("{s} = {s}", .{ path, std.mem.trim(u8, rest, " ") });
},
.quit, .exit => {