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

Diff for /src/usr.bin/tmux/cmd-move-window.c between version 1.2 and 1.3

version 1.2, 2009/07/13 17:47:46 version 1.3, 2009/07/13 23:11:35
Line 31 
Line 31 
 const struct cmd_entry cmd_move_window_entry = {  const struct cmd_entry cmd_move_window_entry = {
         "move-window", "movew",          "move-window", "movew",
         "[-dk] " CMD_SRCDST_WINDOW_USAGE,          "[-dk] " CMD_SRCDST_WINDOW_USAGE,
         CMD_DFLAG|CMD_KFLAG,          0, CMD_CHFLAG('d')|CMD_CHFLAG('k'),
         cmd_srcdst_init,          cmd_srcdst_init,
         cmd_srcdst_parse,          cmd_srcdst_parse,
         cmd_move_window_exec,          cmd_move_window_exec,
Line 64 
Line 64 
                 if (wl_dst->window == wl_src->window)                  if (wl_dst->window == wl_src->window)
                         return (0);                          return (0);
   
                 if (data->flags & CMD_KFLAG) {                  if (data->chflags & CMD_CHFLAG('k')) {
                         /*                          /*
                          * Can't use session_detach as it will destroy session                           * Can't use session_detach as it will destroy session
                          * if this makes it empty.                           * if this makes it empty.
Line 75 
Line 75 
   
                         /* Force select/redraw if current. */                          /* Force select/redraw if current. */
                         if (wl_dst == dst->curw) {                          if (wl_dst == dst->curw) {
                                 data->flags &= ~CMD_DFLAG;                                  data->chflags &= ~CMD_CHFLAG('d');
                                 dst->curw = NULL;                                  dst->curw = NULL;
                         }                          }
                 }                  }
Line 100 
Line 100 
                         server_redraw_client(c);                          server_redraw_client(c);
         }          }
   
         if (data->flags & CMD_DFLAG)          if (data->chflags & CMD_CHFLAG('d'))
                 server_status_session(dst);                  server_status_session(dst);
         else {          else {
                 session_select(dst, wl_dst->idx);                  session_select(dst, wl_dst->idx);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3