mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Preserve argument type in command and convert to string on demand.
This commit is contained in:
@ -804,7 +804,8 @@ cmd_parse_build_command(struct cmd_parse_command *cmd,
|
||||
return (cmdlist);
|
||||
|
||||
TAILQ_FOREACH(arg, &cmd->arguments, entry) {
|
||||
values = xreallocarray(values, count + 1, sizeof *values);
|
||||
values = xrecallocarray(values, count, count + 1,
|
||||
sizeof *values);
|
||||
switch (arg->type) {
|
||||
case CMD_PARSE_STRING:
|
||||
values[count].type = ARGS_STRING;
|
||||
|
Reference in New Issue
Block a user