[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.136 and 1.137

version 1.136, 2020/05/16 16:50:55 version 1.137, 2020/06/16 08:18:34
Line 151 
Line 151 
         if (args_has(args, 'u')) {          if (args_has(args, 'u')) {
                 if (o == NULL)                  if (o == NULL)
                         goto out;                          goto out;
                 if (idx == -1) {                  if (options_remove_or_default(o, idx, &cause) != 0) {
                         if (*name == '@')  
                                 options_remove(o);  
                         else if (oo == global_options ||  
                             oo == global_s_options ||  
                             oo == global_w_options)  
                                 options_default(oo, options_table_entry(o));  
                         else  
                                 options_remove(o);  
                 } else if (options_array_set(o, idx, NULL, 0, &cause) != 0) {  
                         cmdq_error(item, "%s", cause);                          cmdq_error(item, "%s", cause);
                         free(cause);                          free(cause);
                         goto fail;                          goto fail;

Legend:
Removed from v.1.136  
changed lines
  Added in v.1.137