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

Diff for /src/usr.bin/tmux/Attic/cmd-choose-session.c between version 1.7 and 1.8

version 1.7, 2009/09/07 21:01:50 version 1.8, 2009/10/10 10:02:48
Line 54 
Line 54 
         struct cmd_choose_session_data  *cdata;          struct cmd_choose_session_data  *cdata;
         struct winlink                  *wl;          struct winlink                  *wl;
         struct session                  *s;          struct session                  *s;
           struct session_group            *sg;
         u_int                            i, idx, cur;          u_int                            i, idx, cur;
           char                             tmp[64];
   
         if (ctx->curclient == NULL) {          if (ctx->curclient == NULL) {
                 ctx->error(ctx, "must be run interactively");                  ctx->error(ctx, "must be run interactively");
Line 76 
Line 78 
                         cur = idx;                          cur = idx;
                 idx++;                  idx++;
   
                   sg = session_group_find(s);
                   if (sg == NULL)
                           *tmp = '\0';
                   else {
                           idx = session_group_index(sg);
                           xsnprintf(tmp, sizeof tmp, " (group %u)", idx);
                   }
   
                 window_choose_add(wl->window->active, i,                  window_choose_add(wl->window->active, i,
                     "%s: %u windows [%ux%u]%s", s->name,                      "%s: %u windows [%ux%u]%s%s", s->name,
                     winlink_count(&s->windows), s->sx, s->sy,                      winlink_count(&s->windows), s->sx, s->sy,
                     s->flags & SESSION_UNATTACHED ? "" : " (attached)");                      tmp, s->flags & SESSION_UNATTACHED ? "" : " (attached)");
         }          }
   
         cdata = xmalloc(sizeof *cdata);          cdata = xmalloc(sizeof *cdata);

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