[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.32 and 1.33

version 1.32, 2015/02/05 10:29:43 version 1.33, 2015/04/24 23:17:11
Line 51 
Line 51 
         struct window_pane      *wp = NULL;          struct window_pane      *wp = NULL;
         const char              *update;          const char              *update;
         char                    *cause;          char                    *cause;
         u_int                    i;  
         int                      fd;          int                      fd;
         struct format_tree      *ft;          struct format_tree      *ft;
         char                    *cp;          char                    *cp;
Line 92 
Line 91 
                          * Can't use server_write_session in case attaching to                           * Can't use server_write_session in case attaching to
                          * the same session as currently attached to.                           * the same session as currently attached to.
                          */                           */
                         for (i = 0; i < ARRAY_LENGTH(&clients); i++) {                          TAILQ_FOREACH(c, &clients, entry) {
                                 c = ARRAY_ITEM(&clients, i);                                  if (c->session != s || c == cmdq->client)
                                 if (c == NULL || c->session != s)  
                                         continue;  
                                 if (c == cmdq->client)  
                                         continue;                                          continue;
                                 server_write_client(c, MSG_DETACH,                                  server_write_client(c, MSG_DETACH,
                                     c->session->name,                                      c->session->name,

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33