noice

small file browser
git clone git://git.2f30.org/noice
Log | Files | Refs | README | LICENSE

commit 4e818a3980ac2331d507773b51e7d0c8cfc899b5
parent 4fa2a994499211ed558c8e6fea1cf623b5feaad4
Author: lostd <lostd@2f30.org>
Date:   Tue,  7 Oct 2014 11:23:44 +0000

Include lines calculation in redraw

Diffstat:
Mnoice.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 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();