mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
Allow whitespace after commas in ColorList values
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user