Return to grid.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.76, 2017/09/10 14:36:12 | version 1.77, 2017/09/11 06:40:46 | ||
---|---|---|---|
|
|
||
{ | { | ||
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 |