mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 07:46:12 +03:00
cli: store manually parsed args for config replays
CLI args are stored in the configuration `_inputs` field for replaying on configuration reload. When entering `parseManuallyHook`, we consume all args, preventing storage for replays. Store the args when parsing manually to allow replay of configuration.
This commit is contained in:
@ -1639,6 +1639,7 @@ pub fn parseManuallyHook(self: *Config, alloc: Allocator, arg: []const u8, iter:
|
||||
errdefer command.deinit();
|
||||
|
||||
while (iter.next()) |param| {
|
||||
try self._inputs.append(alloc, try alloc.dupe(u8, param));
|
||||
try command.appendSlice(param);
|
||||
try command.append(' ');
|
||||
}
|
||||
|
Reference in New Issue
Block a user