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

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

version 1.8, 2012/07/11 07:10:15 version 1.9, 2012/12/24 12:34:32
Line 31 
Line 31 
   
 const struct cmd_entry cmd_select_window_entry = {  const struct cmd_entry cmd_select_window_entry = {
         "select-window", "selectw",          "select-window", "selectw",
         "lnpt:", 0, 0,          "lnpTt:", 0, 0,
         "[-lnp] " CMD_TARGET_WINDOW_USAGE,          "[-lnpT] " CMD_TARGET_WINDOW_USAGE,
         0,          0,
         cmd_select_window_key_binding,          cmd_select_window_key_binding,
         NULL,          NULL,
Line 130 
Line 130 
                 if (wl == NULL)                  if (wl == NULL)
                         return (CMD_RETURN_ERROR);                          return (CMD_RETURN_ERROR);
   
                 if (session_select(s, wl->idx) == 0)                  /*
                    * If -T and select-window is invoked on same window as
                    * current, switch to previous window.
                    */
                   if (args_has(self->args, 'T') && wl == s->curw) {
                           if (session_last(s) != 0) {
                                   ctx->error(ctx, "no last window");
                                   return (-1);
                           }
                           server_redraw_session(s);
                   } else if (session_select(s, wl->idx) == 0)
                         server_redraw_session(s);                          server_redraw_session(s);
         }          }
         recalculate_sizes();          recalculate_sizes();

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