]> Sergey Matveev's repositories - nnn.git/commitdiff
Include lines calculation in redraw
authorlostd <lostd@2f30.org>
Tue, 7 Oct 2014 11:23:44 +0000 (11:23 +0000)
committerlostd <>
Tue, 7 Oct 2014 11:23:44 +0000 (11:23 +0000)
noice.c

diff --git a/noice.c b/noice.c
index b241e20a10a60c9985226bef8aea3fdff538fab6..062e26b78c44b38ae24956945a6c0d3576cd1224 100644 (file)
--- 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();