From: lostd Date: Tue, 7 Oct 2014 11:23:44 +0000 (+0000) Subject: Include lines calculation in redraw X-Git-Tag: v1.0~92^2~265 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=4e818a3980ac2331d507773b51e7d0c8cfc899b5;p=nnn.git Include lines calculation in redraw --- diff --git a/noice.c b/noice.c index b241e20a..062e26b7 100644 --- a/noice.c +++ b/noice.c @@ -214,8 +214,11 @@ begin: qsort(dents, n, sizeof(*dents), dentcmp); for (;;) { - int nlines = MIN(LINES - 4, n); + int nlines; + redraw: + nlines = MIN(LINES - 4, n); + /* Clean screen */ erase();