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

Diff for /src/usr.bin/tmux/Attic/cmd-choose-client.c between version 1.25 and 1.26

version 1.25, 2015/10/25 22:29:17 version 1.26, 2015/12/13 14:32:38
Line 41 
Line 41 
         "choose-client", NULL,          "choose-client", NULL,
         "F:t:", 0, 1,          "F:t:", 0, 1,
         CMD_TARGET_WINDOW_USAGE " [-F format] [template]",          CMD_TARGET_WINDOW_USAGE " [-F format] [template]",
         0,          CMD_WINDOW_T,
         cmd_choose_client_exec          cmd_choose_client_exec
 };  };
   
Line 53 
Line 53 
 cmd_choose_client_exec(struct cmd *self, struct cmd_q *cmdq)  cmd_choose_client_exec(struct cmd *self, struct cmd_q *cmdq)
 {  {
         struct args                     *args = self->args;          struct args                     *args = self->args;
         struct client                   *c;          struct client                   *c = cmdq->state.c;
         struct client                   *c1;          struct client                   *c1;
         struct window_choose_data       *cdata;          struct window_choose_data       *cdata;
         struct winlink                  *wl;          struct winlink                  *wl = cmdq->state.tflag.wl;
         const char                      *template;          const char                      *template;
         char                            *action;          char                            *action;
         u_int                            idx, cur;          u_int                            idx, cur;
   
         if ((c = cmd_find_client(cmdq, NULL, 1)) == NULL) {          if (c == NULL) {
                 cmdq_error(cmdq, "no client available");                  cmdq_error(cmdq, "no client available");
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);
         }          }
   
         if ((wl = cmd_find_window(cmdq, args_get(args, 't'), NULL)) == NULL)  
                 return (CMD_RETURN_ERROR);  
   
         if (window_pane_set_mode(wl->window->active, &window_choose_mode) != 0)          if (window_pane_set_mode(wl->window->active, &window_choose_mode) != 0)
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26