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

Diff for /src/usr.bin/tmux/cmd-set-option.c between version 1.129 and 1.130

version 1.129, 2020/04/13 07:25:33 version 1.130, 2020/04/13 08:26:27
Line 81 
Line 81 
 static enum cmd_retval  static enum cmd_retval
 cmd_set_option_exec(struct cmd *self, struct cmdq_item *item)  cmd_set_option_exec(struct cmd *self, struct cmdq_item *item)
 {  {
         struct args                     *args = self->args;          struct args                     *args = cmd_get_args(self);
         int                              append = args_has(args, 'a');          int                              append = args_has(args, 'a');
         struct cmd_find_state           *fs = &item->target;          struct cmd_find_state           *fs = &item->target;
         struct client                   *c, *loop;          struct client                   *c, *loop;
Line 96 
Line 96 
         int                              scope;          int                              scope;
         struct style                    *sy;          struct style                    *sy;
   
         window = (self->entry == &cmd_set_window_option_entry);          window = (cmd_get_entry(self) == &cmd_set_window_option_entry);
   
         /* Expand argument. */          /* Expand argument. */
         c = cmd_find_client(item, NULL, 1);          c = cmd_find_client(item, NULL, 1);
         argument = format_single(item, args->argv[0], c, s, wl, NULL);          argument = format_single(item, args->argv[0], c, s, wl, NULL);
   
         /* If set-hook -R, fire the hook straight away. */          /* If set-hook -R, fire the hook straight away. */
         if (self->entry == &cmd_set_hook_entry && args_has(args, 'R')) {          if (cmd_get_entry(self) == &cmd_set_hook_entry && args_has(args, 'R')) {
                 notify_hook(item, argument);                  notify_hook(item, argument);
                 free(argument);                  free(argument);
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
Line 288 
Line 288 
     struct options_entry *parent, const char *value)      struct options_entry *parent, const char *value)
 {  {
         const struct options_table_entry        *oe;          const struct options_table_entry        *oe;
         struct args                             *args = self->args;          struct args                             *args = cmd_get_args(self);
         int                                      append = args_has(args, 'a');          int                                      append = args_has(args, 'a');
         struct options_entry                    *o;          struct options_entry                    *o;
         long long                                number;          long long                                number;

Legend:
Removed from v.1.129  
changed lines
  Added in v.1.130