allow list themes --plain to accept --color flag

pull/9748/head
rhodes-b 2025-11-28 19:26:11 -06:00
parent 6b28671ead
commit 351dd2ea51
1 changed files with 6 additions and 0 deletions

View File

@ -180,7 +180,13 @@ pub fn run(gpa_alloc: std.mem.Allocator) !u8 {
return 0;
}
var theme_config = try Config.default(gpa_alloc);
defer theme_config.deinit();
for (themes.items) |theme| {
try theme_config.loadFile(theme_config._arena.?.allocator(), theme.path);
if (!shouldIncludeTheme(opts.color, theme_config)) {
continue;
}
if (opts.path)
try stdout.print("{s} ({t}) {s}\n", .{ theme.theme, theme.location, theme.path })
else