[BACK]Return to server-fn.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/server-fn.c between version 1.103 and 1.104

version 1.103, 2017/01/13 11:56:43 version 1.104, 2017/02/09 15:04:53
Line 78 
Line 78 
 {  {
         struct session_group    *sg;          struct session_group    *sg;
   
         if ((sg = session_group_find(s)) == NULL)          if ((sg = session_group_contains(s)) == NULL)
                 server_redraw_session(s);                  server_redraw_session(s);
         else {          else {
                 TAILQ_FOREACH(s, &sg->sessions, gentry)                  TAILQ_FOREACH(s, &sg->sessions, gentry)
Line 102 
Line 102 
 {  {
         struct session_group    *sg;          struct session_group    *sg;
   
         if ((sg = session_group_find(s)) == NULL)          if ((sg = session_group_contains(s)) == NULL)
                 server_status_session(s);                  server_status_session(s);
         else {          else {
                 TAILQ_FOREACH(s, &sg->sessions, gentry)                  TAILQ_FOREACH(s, &sg->sessions, gentry)
Line 220 
Line 220 
                 }                  }
   
                 if (options_get_number(s->options, "renumber-windows")) {                  if (options_get_number(s->options, "renumber-windows")) {
                         if ((sg = session_group_find(s)) != NULL) {                          if ((sg = session_group_contains(s)) != NULL) {
                                 TAILQ_FOREACH(target_s, &sg->sessions, gentry)                                  TAILQ_FOREACH(target_s, &sg->sessions, gentry)
                                         session_renumber_windows(target_s);                                          session_renumber_windows(target_s);
                         } else                          } else
Line 238 
Line 238 
         struct winlink          *dstwl;          struct winlink          *dstwl;
         struct session_group    *srcsg, *dstsg;          struct session_group    *srcsg, *dstsg;
   
         srcsg = session_group_find(src);          srcsg = session_group_contains(src);
         dstsg = session_group_find(dst);          dstsg = session_group_contains(dst);
         if (src != dst && srcsg != NULL && dstsg != NULL && srcsg == dstsg) {          if (src != dst && srcsg != NULL && dstsg != NULL && srcsg == dstsg) {
                 xasprintf(cause, "sessions are grouped");                  xasprintf(cause, "sessions are grouped");
                 return (-1);                  return (-1);
Line 348 
Line 348 
         struct session_group    *sg;          struct session_group    *sg;
         struct session          *s1;          struct session          *s1;
   
         if ((sg = session_group_find(s)) == NULL)          if ((sg = session_group_contains(s)) == NULL)
                 server_destroy_session(s);                  server_destroy_session(s);
         else {          else {
                 TAILQ_FOREACH_SAFE(s, &sg->sessions, gentry, s1) {                  TAILQ_FOREACH_SAFE(s, &sg->sessions, gentry, s1) {

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104