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

Diff for /src/usr.bin/tmux/screen.c between version 1.11 and 1.12

version 1.11, 2009/08/08 13:29:27 version 1.12, 2009/12/03 22:50:10
Line 51 
Line 51 
         s->rlower = screen_size_y(s) - 1;          s->rlower = screen_size_y(s) - 1;
   
         s->mode = MODE_CURSOR;          s->mode = MODE_CURSOR;
   
         screen_reset_tabs(s);          screen_reset_tabs(s);
   
         grid_clear_lines(s->grid, s->grid->hsize, s->grid->sy);          grid_clear_lines(s->grid, s->grid->hsize, s->grid->sy);
Line 152 
Line 152 
                 fatalx("zero size");                  fatalx("zero size");
         oldy = screen_size_y(s);          oldy = screen_size_y(s);
   
         /*          /*
          * When resizing:           * When resizing:
          *           *
          * If the height is decreasing, delete lines from the bottom until           * If the height is decreasing, delete lines from the bottom until
          * hitting the cursor, then push lines from the top into the history.           * hitting the cursor, then push lines from the top into the history.
          *           *
          * When increasing, pull as many lines as possible from the history to           * When increasing, pull as many lines as possible from the history to
          * the top, then fill the remaining with blanks at the bottom.           * the top, then fill the remaining with blanks at the bottom.
          */           */
Line 191 
Line 191 
                         grid_view_delete_lines(gd, 0, available);                          grid_view_delete_lines(gd, 0, available);
                 }                  }
                 s->cy -= needed;                  s->cy -= needed;
         }          }
   
         /* Resize line arrays. */          /* Resize line arrays. */
         gd->linedata = xrealloc(          gd->linedata = xrealloc(

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12