[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.61 and 1.62

version 1.61, 2013/03/24 09:55:02 version 1.62, 2013/07/05 15:10:38
Line 128 
Line 128 
                         oo = &global_w_options;                          oo = &global_w_options;
                 else {                  else {
                         wl = cmd_find_window(cmdq, args_get(args, 't'), NULL);                          wl = cmd_find_window(cmdq, args_get(args, 't'), NULL);
                         if (wl == NULL)                          if (wl == NULL) {
                                   cmdq_error(cmdq,
                                       "couldn't set '%s'%s", optstr,
                                       (!args_has(args, 't') && !args_has(args,
                                       'g')) ? " need target window or -g" : "");
                                 return (CMD_RETURN_ERROR);                                  return (CMD_RETURN_ERROR);
                           }
                         oo = &wl->window->options;                          oo = &wl->window->options;
                 }                  }
         } else if (table == session_options_table) {          } else if (table == session_options_table) {
Line 137 
Line 142 
                         oo = &global_s_options;                          oo = &global_s_options;
                 else {                  else {
                         s = cmd_find_session(cmdq, args_get(args, 't'), 0);                          s = cmd_find_session(cmdq, args_get(args, 't'), 0);
                         if (s == NULL)                          if (s == NULL) {
                                   cmdq_error(cmdq,
                                       "couldn't set '%s'%s", optstr,
                                       (!args_has(args, 't') && !args_has(args,
                                       'g')) ? " need target session or -g" : "");
                                 return (CMD_RETURN_ERROR);                                  return (CMD_RETURN_ERROR);
                           }
                         oo = &s->options;                          oo = &s->options;
                 }                  }
         } else {          } else {

Legend:
Removed from v.1.61  
changed lines
  Added in v.1.62