mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
termio: allocate initial capacity more accurately
This commit is contained in:
@ -800,7 +800,7 @@ const Subprocess = struct {
|
|||||||
|
|
||||||
// Build our args list
|
// Build our args list
|
||||||
const args = args: {
|
const args = args: {
|
||||||
const cap = 6; // the most we'll use on macOS
|
const cap = 9; // the most we'll ever use
|
||||||
var args = try std.ArrayList([]const u8).initCapacity(alloc, cap);
|
var args = try std.ArrayList([]const u8).initCapacity(alloc, cap);
|
||||||
defer args.deinit();
|
defer args.deinit();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user