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

Diff for /src/usr.bin/tmux/Attic/cmd-choose-list.c between version 1.6 and 1.7

version 1.6, 2013/03/21 16:09:59 version 1.7, 2013/03/24 09:54:10
Line 31 
Line 31 
  * Enter choose mode to choose a custom list.   * Enter choose mode to choose a custom list.
  */   */
   
 enum cmd_retval cmd_choose_list_exec(struct cmd *, struct cmd_ctx *);  enum cmd_retval cmd_choose_list_exec(struct cmd *, struct cmd_q *);
   
 const struct cmd_entry cmd_choose_list_entry = {  const struct cmd_entry cmd_choose_list_entry = {
         "choose-list", NULL,          "choose-list", NULL,
Line 44 
Line 44 
 };  };
   
 enum cmd_retval  enum cmd_retval
 cmd_choose_list_exec(struct cmd *self, struct cmd_ctx *ctx)  cmd_choose_list_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 53 
Line 53 
         char                            *template, *item, *copy, *list;          char                            *template, *item, *copy, *list;
         u_int                            idx;          u_int                            idx;
   
         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 ((list1 = args_get(args, 'l')) == NULL)          if ((list1 = args_get(args, 'l')) == NULL)
                 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)

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7