[BACK]Return to window.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/window.c between version 1.95 and 1.96

version 1.95, 2013/03/25 11:55:01 version 1.96, 2013/03/25 15:59:57
Line 314 
Line 314 
 {  {
         struct window           *w;          struct window           *w;
         struct window_pane      *wp;          struct window_pane      *wp;
         const char              *prefix;  
         char                    *cmd1;  
   
         w = window_create1(sx, sy);          w = window_create1(sx, sy);
         wp = window_add_pane(w, hlimit);          wp = window_add_pane(w, hlimit);
         layout_init(w, wp);          layout_init(w, wp);
   
         if (*cmd != '\0') {          if (window_pane_spawn(wp, cmd, shell, cwd, env, tio, cause) != 0) {
                 prefix = options_get_string(&w->options, "command-prefix");  
                 xasprintf(&cmd1, "%s%s", prefix, cmd);  
         } else  
                 cmd1 = xstrdup("");  
         if (window_pane_spawn(wp, cmd1, shell, cwd, env, tio, cause) != 0) {  
                 window_destroy(w);                  window_destroy(w);
                 free(cmd1);  
                 return (NULL);                  return (NULL);
         }          }
         free(cmd1);  
   
         w->active = TAILQ_FIRST(&w->panes);          w->active = TAILQ_FIRST(&w->panes);
         if (name != NULL) {          if (name != NULL) {

Legend:
Removed from v.1.95  
changed lines
  Added in v.1.96