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

Diff for /src/usr.bin/tmux/cmd-command-prompt.c between version 1.21 and 1.22

version 1.21, 2012/07/11 07:10:15 version 1.22, 2013/03/22 15:49:55
Line 150 
Line 150 
         struct cmd_command_prompt_cdata *cdata = data;          struct cmd_command_prompt_cdata *cdata = data;
         struct client                   *c = cdata->c;          struct client                   *c = cdata->c;
         struct cmd_list                 *cmdlist;          struct cmd_list                 *cmdlist;
         struct cmd_ctx                   ctx;          struct cmd_ctx                  *ctx;
         char                            *cause, *new_template, *prompt, *ptr;          char                            *cause, *new_template, *prompt, *ptr;
         char                            *input = NULL;          char                            *input = NULL;
   
Line 184 
Line 184 
                 return (0);                  return (0);
         }          }
   
         ctx.msgdata = NULL;          ctx = cmd_get_ctx();
         ctx.curclient = c;          ctx->msgdata = NULL;
           ctx->curclient = c;
           ctx->cmdclient = NULL;
   
         ctx.error = key_bindings_error;          ctx->error = key_bindings_error;
         ctx.print = key_bindings_print;          ctx->print = key_bindings_print;
         ctx.info = key_bindings_info;          ctx->info = key_bindings_info;
   
         ctx.cmdclient = NULL;          cmd_list_exec(cmdlist, ctx);
   
         cmd_list_exec(cmdlist, &ctx);  
         cmd_list_free(cmdlist);          cmd_list_free(cmdlist);
           cmd_free_ctx(ctx);
   
         if (c->prompt_callbackfn != (void *) &cmd_command_prompt_callback)          if (c->prompt_callbackfn != (void *) &cmd_command_prompt_callback)
                 return (1);                  return (1);

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22