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

Diff for /src/usr.bin/tmux/server-client.c between version 1.352 and 1.353

version 1.352, 2020/06/01 09:43:01 version 1.353, 2020/06/01 20:58:42
Line 1510 
Line 1510 
         struct window_pane_offset       *wpo;          struct window_pane_offset       *wpo;
         int                              off = 1, flag;          int                              off = 1, flag;
         u_int                            attached_clients = 0;          u_int                            attached_clients = 0;
           size_t                           new_size;
   
         /*          /*
          * Work out the minimum used size. This is the most that can be removed           * Work out the minimum used size. This is the most that can be removed
Line 1535 
Line 1536 
                 if (!flag)                  if (!flag)
                         off = 0;                          off = 0;
   
                 log_debug("%s: %s has %zu bytes used for %%%u", __func__,                  window_pane_get_new_data(wp, wpo, &new_size);
                     c->name, wpo->used - wp->base_offset, wp->id);                  log_debug("%s: %s has %zu bytes used and %zu left for %%%u",
                 if (wpo->used - wp->base_offset > SERVER_CLIENT_PANE_LIMIT) {                      __func__, c->name, wpo->used - wp->base_offset, new_size,
                       wp->id);
                   if (new_size > SERVER_CLIENT_PANE_LIMIT) {
                         control_flush(c);                          control_flush(c);
                         c->flags |= CLIENT_EXIT;                          c->flags |= CLIENT_EXIT;
                 } else if (wpo->used < minimum)                  }
                   if (wpo->used < minimum)
                         minimum = wpo->used;                          minimum = wpo->used;
         }          }
         if (attached_clients == 0)          if (attached_clients == 0)

Legend:
Removed from v.1.352  
changed lines
  Added in v.1.353