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

Diff for /src/usr.bin/tmux/cmd-find-window.c between version 1.23 and 1.24

version 1.23, 2013/03/21 16:09:59 version 1.24, 2013/03/24 09:54:10
Line 28 
Line 28 
  * Find window containing text.   * Find window containing text.
  */   */
   
 enum cmd_retval  cmd_find_window_exec(struct cmd *, struct cmd_ctx *);  enum cmd_retval  cmd_find_window_exec(struct cmd *, struct cmd_q *);
   
 void    cmd_find_window_callback(struct window_choose_data *);  void    cmd_find_window_callback(struct window_choose_data *);
   
Line 127 
Line 127 
 }  }
   
 enum cmd_retval  enum cmd_retval
 cmd_find_window_exec(struct cmd *self, struct cmd_ctx *ctx)  cmd_find_window_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 139 
Line 139 
         const char                      *template;          const char                      *template;
         u_int                            i, match_flags;          u_int                            i, match_flags;
   
         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);
         }          }
         s = c->session;          s = c->session;
   
         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 ((template = args_get(args, 'F')) == NULL)          if ((template = args_get(args, 'F')) == NULL)
Line 162 
Line 162 
         free(searchstr);          free(searchstr);
   
         if (ARRAY_LENGTH(&find_list) == 0) {          if (ARRAY_LENGTH(&find_list) == 0) {
                 ctx->error(ctx, "no windows matching: %s", str);                  cmdq_error(cmdq, "no windows matching: %s", str);
                 ARRAY_FREE(&find_list);                  ARRAY_FREE(&find_list);
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);
         }          }

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24