From 4e818a3980ac2331d507773b51e7d0c8cfc899b5 Mon Sep 17 00:00:00 2001 From: lostd Date: Tue, 7 Oct 2014 11:23:44 +0000 Subject: [PATCH] Include lines calculation in redraw --- noice.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();