[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.41 and 1.42

version 1.41, 2016/10/16 19:04:05 version 1.42, 2016/11/11 11:37:25
Line 62 
Line 62 
   
         if (cdata->wp_id != -1)          if (cdata->wp_id != -1)
                 wp = window_pane_find_by_id(cdata->wp_id);                  wp = window_pane_find_by_id(cdata->wp_id);
         if (wp == NULL) {          if (cdata->item != NULL && wp == NULL) {
                 cmdq_print(cdata->item, "%s", msg);                  cmdq_print(cdata->item, "%s", msg);
                 return;                  return;
         }          }
Line 99 
Line 99 
   
         cdata = xcalloc(1, sizeof *cdata);          cdata = xcalloc(1, sizeof *cdata);
         cdata->cmd = shellcmd;          cdata->cmd = shellcmd;
   
         if (args_has(args, 't') && wp != NULL)  
                 cdata->wp_id = wp->id;  
         else  
                 cdata->wp_id = -1;  
   
         if (args_has(args, 't') && wp != NULL)          if (args_has(args, 't') && wp != NULL)
                 cdata->wp_id = wp->id;                  cdata->wp_id = wp->id;

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