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

Diff for /src/usr.bin/tmux/cmd-attach-session.c between version 1.18 and 1.19

version 1.18, 2012/03/17 22:35:09 version 1.19, 2012/05/06 07:38:17
Line 43 
Line 43 
         struct session  *s;          struct session  *s;
         struct client   *c;          struct client   *c;
         const char      *update;          const char      *update;
         char            *overrides, *cause;          char            *cause;
         u_int            i;          u_int            i;
   
         if (RB_EMPTY(&sessions)) {          if (RB_EMPTY(&sessions)) {
Line 79 
Line 79 
                 server_redraw_client(ctx->curclient);                  server_redraw_client(ctx->curclient);
                 s->curw->flags &= ~WINLINK_ALERTFLAGS;                  s->curw->flags &= ~WINLINK_ALERTFLAGS;
         } else {          } else {
                 if (!(ctx->cmdclient->flags & CLIENT_TERMINAL)) {                  if (server_client_open(ctx->cmdclient, s, &cause) != 0) {
                         ctx->error(ctx, "not a terminal");                          ctx->error(ctx, "open terminal failed: %s", cause);
                         return (-1);  
                 }  
   
                 overrides =  
                     options_get_string(&s->options, "terminal-overrides");  
                 if (tty_open(&ctx->cmdclient->tty, overrides, &cause) != 0) {  
                         ctx->error(ctx, "terminal open failed: %s", cause);  
                         xfree(cause);                          xfree(cause);
                         return (-1);                          return (-1);
                 }                  }

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19