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

Diff for /src/usr.bin/tmux/cmd-rotate-window.c between version 1.9 and 1.10

version 1.9, 2009/07/26 12:58:44 version 1.10, 2009/11/13 19:53:29
Line 30 
Line 30 
 const struct cmd_entry cmd_rotate_window_entry = {  const struct cmd_entry cmd_rotate_window_entry = {
         "rotate-window", "rotatew",          "rotate-window", "rotatew",
         "[-DU] " CMD_TARGET_WINDOW_USAGE,          "[-DU] " CMD_TARGET_WINDOW_USAGE,
         0, CMD_CHFLAG('D')|CMD_CHFLAG('U'),          0, "DU",
         cmd_rotate_window_init,          cmd_rotate_window_init,
         cmd_target_parse,          cmd_target_parse,
         cmd_rotate_window_exec,          cmd_rotate_window_exec,
Line 47 
Line 47 
         data = self->data;          data = self->data;
   
         if (key == ('o' | KEYC_ESCAPE))          if (key == ('o' | KEYC_ESCAPE))
                 data->chflags |= CMD_CHFLAG('D');                  cmd_set_flag(&data->chflags, 'D');
 }  }
   
 int  int
Line 64 
Line 64 
                 return (-1);                  return (-1);
         w = wl->window;          w = wl->window;
   
         if (data->chflags & CMD_CHFLAG('D')) {          if (cmd_check_flag(data->chflags, 'D')) {
                 wp = TAILQ_LAST(&w->panes, window_panes);                  wp = TAILQ_LAST(&w->panes, window_panes);
                 TAILQ_REMOVE(&w->panes, wp, entry);                  TAILQ_REMOVE(&w->panes, wp, entry);
                 TAILQ_INSERT_HEAD(&w->panes, wp, entry);                  TAILQ_INSERT_HEAD(&w->panes, wp, entry);

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10