[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.4 and 1.5

version 1.4, 2009/07/10 05:50:54 version 1.5, 2009/07/13 23:11:35
Line 32 
Line 32 
 const struct cmd_entry cmd_set_option_entry = {  const struct cmd_entry cmd_set_option_entry = {
         "set-option", "set",          "set-option", "set",
         CMD_OPTION_SESSION_USAGE,          CMD_OPTION_SESSION_USAGE,
         CMD_GFLAG|CMD_UFLAG,          0, CMD_CHFLAG('g')|CMD_CHFLAG('u'),
         NULL,          NULL,
         cmd_option_parse,          cmd_option_parse,
         cmd_set_option_exec,          cmd_set_option_exec,
Line 87 
Line 87 
         const struct set_option_entry   *entry;          const struct set_option_entry   *entry;
         u_int                            i;          u_int                            i;
   
         if (data->flags & CMD_GFLAG)          if (data->chflags & CMD_CHFLAG('g'))
                 oo = &global_s_options;                  oo = &global_s_options;
         else {          else {
                 if ((s = cmd_find_session(ctx, data->target)) == NULL)                  if ((s = cmd_find_session(ctx, data->target)) == NULL)
Line 120 
Line 120 
                 return (-1);                  return (-1);
         }          }
   
         if (data->flags & CMD_UFLAG) {          if (data->chflags & CMD_CHFLAG('u')) {
                 if (data->flags & CMD_GFLAG) {                  if (data->chflags & CMD_CHFLAG('g')) {
                         ctx->error(ctx,                          ctx->error(ctx,
                             "can't unset global option: %s", entry->name);                              "can't unset global option: %s", entry->name);
                         return (-1);                          return (-1);

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5