OSC: improve formatting of ColorOperationSource

This commit is contained in:
Jeffrey C. Ollie
2025-05-24 08:18:09 -05:00
parent bd4d1950ce
commit f2dfd9f677

View File

@@ -179,10 +179,10 @@ pub const Command = union(enum) {
pub fn format(
self: ColorOperationSource,
comptime _: []const u8,
_: std.fmt.FormatOptions,
options: std.fmt.FormatOptions,
writer: anytype,
) !void {
try writer.print("{d}", .{@intFromEnum(self)});
try std.fmt.formatInt(@intFromEnum(self), 10, .lower, options, writer);
}
};