[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.5 and 1.6

version 1.5, 2013/03/21 16:09:17 version 1.6, 2013/03/21 16:09:59
Line 47 
Line 47 
 cmd_choose_list_exec(struct cmd *self, struct cmd_ctx *ctx)  cmd_choose_list_exec(struct cmd *self, struct cmd_ctx *ctx)
 {  {
         struct args                     *args = self->args;          struct args                     *args = self->args;
           struct client                   *c;
         struct winlink                  *wl;          struct winlink                  *wl;
         const char                      *list1;          const char                      *list1;
         char                            *template, *item, *copy, *list;          char                            *template, *item, *copy, *list;
         u_int                            idx;          u_int                            idx;
   
         if (ctx->curclient == NULL) {          if ((c = cmd_current_client(ctx)) == NULL) {
                 ctx->error(ctx, "must be run interactively");                  ctx->error(ctx, "no client available");
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);
         }          }
   
Line 77 
Line 78 
         {          {
                 if (*item == '\0') /* no empty entries */                  if (*item == '\0') /* no empty entries */
                         continue;                          continue;
                 window_choose_add_item(wl->window->active, ctx, wl, item,                  window_choose_add_item(wl->window->active, c, wl, item,
                     template, idx);                      template, idx);
                 idx++;                  idx++;
         }          }

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