[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.16 and 1.17

version 1.16, 2013/03/21 16:09:59 version 1.17, 2013/03/24 09:54:10
Line 27 
Line 27 
  * Enter choice mode to choose a client.   * Enter choice mode to choose a client.
  */   */
   
 enum cmd_retval  cmd_choose_client_exec(struct cmd *, struct cmd_ctx *);  enum cmd_retval  cmd_choose_client_exec(struct cmd *, struct cmd_q *);
   
 void    cmd_choose_client_callback(struct window_choose_data *);  void    cmd_choose_client_callback(struct window_choose_data *);
   
Line 46 
Line 46 
 };  };
   
 enum cmd_retval  enum cmd_retval
 cmd_choose_client_exec(struct cmd *self, struct cmd_ctx *ctx)  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;
Line 57 
Line 57 
         char                            *action;          char                            *action;
         u_int                            i, idx, cur;          u_int                            i, idx, cur;
   
         if ((c = cmd_current_client(ctx)) == NULL) {          if ((c = cmd_current_client(cmdq)) == NULL) {
                 ctx->error(ctx, "no client available");                  cmdq_error(cmdq, "no client available");
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);
         }          }
   
         if ((wl = cmd_find_window(ctx, args_get(args, 't'), NULL)) == NULL)          if ((wl = cmd_find_window(cmdq, args_get(args, 't'), NULL)) == NULL)
                 return (CMD_RETURN_ERROR);                  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)
Line 81 
Line 81 
                 c1 = ARRAY_ITEM(&clients, i);                  c1 = ARRAY_ITEM(&clients, i);
                 if (c1 == NULL || c1->session == NULL)                  if (c1 == NULL || c1->session == NULL)
                         continue;                          continue;
                 if (c1 == ctx->curclient)                  if (c1 == cmdq->client)
                         cur = idx;                          cur = idx;
                 idx++;                  idx++;
   

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17