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

Diff for /src/usr.bin/tmux/cmd-show-options.c between version 1.12 and 1.13

version 1.12, 2011/01/04 00:42:47 version 1.13, 2011/01/04 02:03:41
Line 39 
Line 39 
         cmd_show_options_exec          cmd_show_options_exec
 };  };
   
   const struct cmd_entry cmd_show_window_options_entry = {
           "show-window-options", "showw",
           "gt:", 0, 0,
           "[-g] " CMD_TARGET_WINDOW_USAGE,
           0,
           NULL,
           NULL,
           cmd_show_options_exec
   };
   
 int  int
 cmd_show_options_exec(struct cmd *self, struct cmd_ctx *ctx)  cmd_show_options_exec(struct cmd *self, struct cmd_ctx *ctx)
 {  {
Line 53 
Line 63 
         if (args_has(self->args, 's')) {          if (args_has(self->args, 's')) {
                 oo = &global_options;                  oo = &global_options;
                 table = server_options_table;                  table = server_options_table;
         } else if (args_has(self->args, 'w')) {          } else if (args_has(self->args, 'w') ||
               self->entry == &cmd_show_window_options_entry) {
                 table = window_options_table;                  table = window_options_table;
                 if (args_has(self->args, 'g'))                  if (args_has(self->args, 'g'))
                         oo = &global_w_options;                          oo = &global_w_options;

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13