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

Diff for /src/usr.bin/tmux/cmd-if-shell.c between version 1.22 and 1.23

version 1.22, 2013/03/25 11:43:01 version 1.23, 2013/03/25 16:04:07
Line 59 
Line 59 
         struct args                     *args = self->args;          struct args                     *args = self->args;
         struct cmd_if_shell_data        *cdata;          struct cmd_if_shell_data        *cdata;
         char                            *shellcmd;          char                            *shellcmd;
           struct client                   *c;
         struct session                  *s = NULL;          struct session                  *s = NULL;
         struct winlink                  *wl = NULL;          struct winlink                  *wl = NULL;
         struct window_pane              *wp = NULL;          struct window_pane              *wp = NULL;
Line 66 
Line 67 
   
         if (args_has(args, 't'))          if (args_has(args, 't'))
                 wl = cmd_find_pane(cmdq, args_get(args, 't'), &s, &wp);                  wl = cmd_find_pane(cmdq, args_get(args, 't'), &s, &wp);
           else {
                   c = cmd_find_client(cmdq, NULL, 1);
                   if (c != NULL && c->session != NULL) {
                           s = c->session;
                           wl = s->curw;
                           wp = wl->window->active;
                   }
           }
   
         ft = format_create();          ft = format_create();
         if (s != NULL)          if (s != NULL)

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