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

Diff for /src/usr.bin/tmux/cmd-new-window.c between version 1.2 and 1.3

version 1.2, 2009/07/07 06:58:49 version 1.3, 2009/07/13 17:47:46
Line 126 
Line 126 
         if (data == NULL)          if (data == NULL)
                 return (0);                  return (0);
   
         if (arg_parse_window(data->target, &s, &idx) != 0) {          if ((idx = cmd_find_index(ctx, data->target, &s)) == -2)
                 ctx->error(ctx, "bad window: %s", data->target);  
                 return (-1);                  return (-1);
         }  
         if (s == NULL)  
                 s = ctx->cursession;  
         if (s == NULL)  
                 s = cmd_current_session(ctx);  
         if (s == NULL) {  
                 ctx->error(ctx, "session not found: %s", data->target);  
                 return (-1);  
         }  
   
         wl = NULL;          wl = NULL;
         if (idx != -1)          if (idx != -1)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3