[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.40 and 1.41

version 1.40, 2015/12/14 00:31:54 version 1.41, 2016/03/01 12:06:07
Line 73 
Line 73 
         struct format_tree              *ft;          struct format_tree              *ft;
         const char                      *cwd;          const char                      *cwd;
   
         cwd = wp->cwd;  
   
         if (cmdq->client != NULL && cmdq->client->session == NULL)          if (cmdq->client != NULL && cmdq->client->session == NULL)
                 cwd = cmdq->client->cwd;                  cwd = cmdq->client->cwd;
         else if (s != NULL)          else if (s != NULL)
                 cwd = s->cwd;                  cwd = s->cwd;
         else          else
                 cwd = NULL;                  cwd = NULL;
   
         ft = format_create(cmdq, 0);          ft = format_create(cmdq, 0);
         format_defaults(ft, NULL, s, wl, wp);          format_defaults(ft, NULL, s, wl, wp);
         shellcmd = format_expand(ft, args->argv[0]);          shellcmd = format_expand(ft, args->argv[0]);

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41