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

Diff for /src/usr.bin/tmux/resize.c between version 1.1 and 1.2

version 1.1, 2009/06/01 22:58:49 version 1.2, 2009/07/14 07:23:36
Line 48 
Line 48 
         struct session          *s;          struct session          *s;
         struct client           *c;          struct client           *c;
         struct window           *w;          struct window           *w;
           struct window_pane      *wp;
         u_int                    i, j, ssx, ssy, has, limit;          u_int                    i, j, ssx, ssy, has, limit;
         int                      flag;          int                      flag;
   
Line 132 
Line 133 
                     "window size %u,%u (was %u,%u)", ssx, ssy, w->sx, w->sy);                      "window size %u,%u (was %u,%u)", ssx, ssy, w->sx, w->sy);
   
                 window_resize(w, ssx, ssy);                  window_resize(w, ssx, ssy);
   
                   /*
                    * If the current pane is now not visible, move to the next
                    * that is.
                    */
                   wp = w->active;
                   while (!window_pane_visible(w->active)) {
                           w->active = TAILQ_PREV(w->active, window_panes, entry);
                           if (w->active == NULL)
                                   w->active = TAILQ_LAST(&w->panes, window_panes);
                           if (w->active == wp)
                                  break;
                   }
   
                 server_redraw_window(w);                  server_redraw_window(w);
                 layout_refresh(w, 0);                  layout_refresh(w, 0);
         }          }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2