Include lines calculation in redraw

This commit is contained in:
lostd 2014-10-07 11:23:44 +00:00 committed by lostd
parent 4fa2a99449
commit 4e818a3980
1 changed files with 4 additions and 1 deletions

View File

@ -214,8 +214,11 @@ begin:
qsort(dents, n, sizeof(*dents), dentcmp); qsort(dents, n, sizeof(*dents), dentcmp);
for (;;) { for (;;) {
int nlines = MIN(LINES - 4, n); int nlines;
redraw: redraw:
nlines = MIN(LINES - 4, n);
/* Clean screen */ /* Clean screen */
erase(); erase();