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

Diff for /src/usr.bin/tmux/cmd-run-shell.c between version 1.16 and 1.17

version 1.16, 2013/03/22 15:55:22 version 1.17, 2013/03/24 09:33:35
Line 75 
Line 75 
 {  {
         struct args                     *args = self->args;          struct args                     *args = self->args;
         struct cmd_run_shell_data       *cdata;          struct cmd_run_shell_data       *cdata;
         const char                      *shellcmd = args->argv[0];          char                            *shellcmd;
           struct session                  *s;
           struct winlink                  *wl;
         struct window_pane              *wp;          struct window_pane              *wp;
           struct format_tree              *ft;
   
         if (cmd_find_pane(ctx, args_get(args, 't'), NULL, &wp) == NULL)          wl = cmd_find_pane(ctx, args_get(args, 't'), &s, &wp);
           if (wl == NULL)
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);
   
           ft = format_create();
           format_session(ft, s);
           format_winlink(ft, s, wl);
           format_window_pane(ft, wp);
           shellcmd = format_expand(ft, args->argv[0]);
           format_free(ft);
   
         cdata = xmalloc(sizeof *cdata);          cdata = xmalloc(sizeof *cdata);
         cdata->cmd = xstrdup(args->argv[0]);          cdata->cmd = shellcmd;
         cdata->wp_id = wp->id;          cdata->wp_id = wp->id;
   
         cdata->ctx = ctx;          cdata->ctx = ctx;

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17