From 7c6375f744cba0f617a8f1f71e190881522df36b Mon Sep 17 00:00:00 2001 From: Bryan Lee <38807139+liby@users.noreply.github.com> Date: Sat, 22 Feb 2025 20:53:27 +0800 Subject: [PATCH] Allow whitespace after commas in ColorList values --- src/config/Config.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config/Config.zig b/src/config/Config.zig index a5f5b56b3..5426c1077 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -4338,7 +4338,9 @@ pub const ColorList = struct { count += 1; if (count > 64) return error.InvalidValue; - const color = try Color.parseCLI(raw); + // Trim whitespace from each color value + const trimmed = std.mem.trim(u8, raw, " \t"); + const color = try Color.parseCLI(trimmed); try self.colors.append(alloc, color); try self.colors_c.append(alloc, color.cval()); }