[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.10 and 1.11

version 1.10, 2012/07/10 11:53:01 version 1.11, 2012/07/11 07:10:15
Line 27 
Line 27 
  * Enter choice mode to choose a client.   * Enter choice mode to choose a client.
  */   */
   
 int     cmd_choose_client_exec(struct cmd *, struct cmd_ctx *);  enum cmd_retval  cmd_choose_client_exec(struct cmd *, struct cmd_ctx *);
   
 void    cmd_choose_client_callback(struct window_choose_data *);  void    cmd_choose_client_callback(struct window_choose_data *);
 void    cmd_choose_client_free(struct window_choose_data *);  void    cmd_choose_client_free(struct window_choose_data *);
Line 47 
Line 47 
         char            *template;          char            *template;
 };  };
   
 int  enum cmd_retval
 cmd_choose_client_exec(struct cmd *self, struct cmd_ctx *ctx)  cmd_choose_client_exec(struct cmd *self, struct cmd_ctx *ctx)
 {  {
         struct args                     *args = self->args;          struct args                     *args = self->args;
Line 60 
Line 60 
   
         if (ctx->curclient == NULL) {          if (ctx->curclient == NULL) {
                 ctx->error(ctx, "must be run interactively");                  ctx->error(ctx, "must be run interactively");
                 return (-1);                  return (CMD_RETURN_ERROR);
         }          }
   
         if ((wl = cmd_find_window(ctx, args_get(args, 't'), NULL)) == NULL)          if ((wl = cmd_find_window(ctx, args_get(args, 't'), NULL)) == NULL)
                 return (-1);                  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 (0);                  return (CMD_RETURN_NORMAL);
   
         if ((template = args_get(args, 'F')) == NULL)          if ((template = args_get(args, 'F')) == NULL)
                 template = DEFAULT_CLIENT_TEMPLATE;                  template = DEFAULT_CLIENT_TEMPLATE;
Line 104 
Line 104 
         window_choose_ready(wl->window->active,          window_choose_ready(wl->window->active,
             cur, cmd_choose_client_callback, cmd_choose_client_free);              cur, cmd_choose_client_callback, cmd_choose_client_free);
   
         return (0);          return (CMD_RETURN_NORMAL);
 }  }
   
 void  void

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