explain mask

This commit is contained in:
Jake Stewart
2026-02-04 06:10:39 +08:00
committed by Mitchell Hashimoto
parent e268ff9a8b
commit 44d2ea25d0

View File

@@ -5545,6 +5545,7 @@ pub const Palette = struct {
/// The actual value that is updated as we parse.
value: terminal.color.Palette = terminal.color.default,
/// Keep track of which indexes were manually set by the user.
mask: Mask = .initEmpty(),
const Mask = std.StaticBitSet(@typeInfo(terminal.color.Palette).array.len);