mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
terminfo: numeric comptime buffer only needs to be 10 bytes
This commit is contained in:
@ -86,7 +86,7 @@ pub fn xtgettcapMap(comptime self: Source) type {
|
||||
.boolean => "",
|
||||
.string => |v| v,
|
||||
.numeric => |v| numeric: {
|
||||
var buf: [1024]u8 = undefined;
|
||||
var buf: [10]u8 = undefined;
|
||||
const num_len = std.fmt.formatIntBuf(&buf, v, 10, .upper, .{});
|
||||
break :numeric buf[0..num_len];
|
||||
},
|
||||
|
Reference in New Issue
Block a user