OSC: improve formatting of ColorOperationSource

pull/7429/head
Jeffrey C. Ollie 2025-05-24 08:18:09 -05:00
parent bd4d1950ce
commit f2dfd9f677
No known key found for this signature in database
GPG Key ID: 6F86035A6D97044E
1 changed files with 2 additions and 2 deletions

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);
}
};