[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.6 and 1.7

version 1.6, 2009/07/26 12:58:44 version 1.7, 2009/08/03 14:10:54
Line 43 
Line 43 
         struct cmd_target_data  *data = self->data;          struct cmd_target_data  *data = self->data;
         struct session          *s;          struct session          *s;
         struct client           *c;          struct client           *c;
         char                    *cause;          char                    *overrides, *cause;
         u_int                    i;          u_int                    i;
   
         if (ARRAY_LENGTH(&sessions) == 0) {          if (ARRAY_LENGTH(&sessions) == 0) {
Line 80 
Line 80 
                         return (-1);                          return (-1);
                 }                  }
   
                 if (tty_open(&ctx->cmdclient->tty, &cause) != 0) {                  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);                          ctx->error(ctx, "terminal open failed: %s", cause);
                         xfree(cause);                          xfree(cause);
                         return (-1);                          return (-1);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7