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

Diff for /src/usr.bin/tmux/grid.c between version 1.76 and 1.77

version 1.76, 2017/09/10 14:36:12 version 1.77, 2017/09/11 06:40:46
Line 292 
Line 292 
 {  {
         u_int   ny;          u_int   ny;
   
         if (gd->hsize < gd->hlimit)          if (gd->hsize == 0 || gd->hsize < gd->hlimit)
                 return;                  return;
   
         ny = gd->hlimit / 10;          ny = gd->hlimit / 10;
         if (ny < 1)          if (ny < 1)
                 ny = 1;                  ny = 1;
           if (ny > gd->hsize)
                   ny = gd->hsize;
   
         /*          /*
          * Free the lines from 0 to ny then move the remaining lines over           * Free the lines from 0 to ny then move the remaining lines over

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77