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

Diff for /src/usr.bin/tmux/Attic/cmd-previous-layout.c between version 1.6 and 1.7

version 1.6, 2009/12/03 22:50:10 version 1.7, 2011/01/04 00:42:47
Line 28 
Line 28 
   
 const struct cmd_entry cmd_previous_layout_entry = {  const struct cmd_entry cmd_previous_layout_entry = {
         "previous-layout", "prevl",          "previous-layout", "prevl",
           "t:", 0, 0,
         CMD_TARGET_WINDOW_USAGE,          CMD_TARGET_WINDOW_USAGE,
         0, "",          0,
         cmd_target_init,          NULL,
         cmd_target_parse,          NULL,
         cmd_previous_layout_exec,          cmd_previous_layout_exec
         cmd_target_free,  
         cmd_target_print  
 };  };
   
 int  int
 cmd_previous_layout_exec(struct cmd *self, struct cmd_ctx *ctx)  cmd_previous_layout_exec(struct cmd *self, struct cmd_ctx *ctx)
 {  {
         struct cmd_target_data  *data = self->data;          struct args     *args = self->args;
         struct winlink          *wl;          struct winlink  *wl;
         u_int                    layout;          u_int            layout;
   
         if ((wl = cmd_find_window(ctx, data->target, NULL)) == NULL)          if ((wl = cmd_find_window(ctx, args_get(args, 't'), NULL)) == NULL)
                 return (-1);                  return (-1);
   
         layout = layout_set_previous(wl->window);          layout = layout_set_previous(wl->window);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7