[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.59 and 1.60

version 1.59, 2018/08/23 15:45:05 version 1.60, 2018/08/27 11:03:34
Line 120 
Line 120 
                 cdata->item = NULL;                  cdata->item = NULL;
         memcpy(&cdata->mouse, &shared->mouse, sizeof cdata->mouse);          memcpy(&cdata->mouse, &shared->mouse, sizeof cdata->mouse);
   
         job_run(shellcmd, s, server_client_get_cwd(item->client, s), NULL,          if (job_run(shellcmd, s, server_client_get_cwd(item->client, s), NULL,
             cmd_if_shell_callback, cmd_if_shell_free, cdata, 0);              cmd_if_shell_callback, cmd_if_shell_free, cdata, 0) == NULL) {
                   cmdq_error(item, "failed to run command: %s", shellcmd);
                   free(shellcmd);
                   free(cdata);
                   return (CMD_RETURN_ERROR);
           }
         free(shellcmd);          free(shellcmd);
   
         if (args_has(args, 'b'))          if (args_has(args, 'b'))

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.60