[BACK]Return to cmd-queue.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-queue.c between version 1.104 and 1.105

version 1.104, 2021/08/20 18:59:53 version 1.105, 2021/08/20 19:50:16
Line 357 
Line 357 
         struct options                  *oo;          struct options                  *oo;
         va_list                          ap;          va_list                          ap;
         char                            *name, tmp[32], flag, *arguments;          char                            *name, tmp[32], flag, *arguments;
         int                              i;          u_int                            i;
         const char                      *value;          const char                      *value;
         struct cmdq_item                *new_item;          struct cmdq_item                *new_item;
         struct cmdq_state               *new_state;          struct cmdq_state               *new_state;
Line 394 
Line 394 
         cmdq_add_format(new_state, "hook_arguments", "%s", arguments);          cmdq_add_format(new_state, "hook_arguments", "%s", arguments);
         free(arguments);          free(arguments);
   
         for (i = 0; i < args->argc; i++) {          for (i = 0; i < args_count(args); i++) {
                 xsnprintf(tmp, sizeof tmp, "hook_argument_%d", i);                  xsnprintf(tmp, sizeof tmp, "hook_argument_%d", i);
                 cmdq_add_format(new_state, tmp, "%s", args->argv[i]);                  cmdq_add_format(new_state, tmp, "%s", args_string(args, i));
         }          }
         flag = args_first(args, &ae);          flag = args_first(args, &ae);
         while (flag != 0) {          while (flag != 0) {

Legend:
Removed from v.1.104  
changed lines
  Added in v.1.105